Hacker News new | past | comments | ask | show | jobs | submit login
Microservices at Snapchat (snap.com)
7 points by chadd on July 20, 2021 | hide | past | favorite | 3 comments



Some answer from here: https://community.temporal.io/t/temporal-vs-akka-and-lagom/2...

" I think the most fundamental difference is that Temporal provides an abstraction of a persistent call stack. Every step of a business process is transparently persisted by the server, so that it can continue its execution after a failure, an unavailability of a dependency it is trying to call, or after a sleep. The server drives execution of workflows to completion, not application code. Actor systems typically employ the fail-fast approach, where instead of retrying after an error, they return such error or fail the actor altogether, and leave the decision to retry to the caller.

While one can implement a bespoke workflow framework on top of actors (by using storage and persistent timers), it’s a lot of work to build a general purpose workflow system that would be powerful enough, have a clean programming model, support all the edge cases, and be polyglot. Temporal provides a mature out-of-the-box implementation that focused on the workflow scenarios from the start, covers all those mainstream and edge cases well, scales horizontally, and has been battle tested by some of the most demanding workloads."


How Temporal differs to Akka and Lagom? Im looking forward on building more microservices but I'm still stuck on which stack to use


Lagom underneath uses Akka, it seems like a neat way to create microservices and provides good frameworks to stand up a microservice in a short time and provide some good practises. While Temporal is more focused on Workflow/Service Orchestration part, it can help making sure different calls to different microservices are reliable and processing states are persisted so service downtime wouldn't matter much as system can resume to its previous state without restarting from beginning and wasting resource. In short, Lagom is helpful when creating microservices, Temporal is helpful when creating system that orchestrate multiple microservices.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: