Contents
What is the difference between microservices?
Microservices are an architectural style for web applications, where the functionality is divided up across small web services. whereas. APIs are the frameworks through which developers can interact with a web application.
What is the use of actor model?
The actor model is a conceptual model to deal with concurrent computation. It defines some general rules for how the system’s components should behave and interact with each other. The most famous language that uses this model is probably Erlang .
What is the relationship between the actor model and Microservices?
Microservices are stand-alone components that serve a single purpose (per definition). In theory, Actors are a perfect fit for implementing microservices environments. Azure Service Fabric especially emphasizes the Actor model by explicitely defining Actors.
How are microservices built in Akka reactive framework?
In Akka, the unit of execution is the Actor and your microservices are built as actors. An actor is lightweight and there can be several million actors per GB of heap memory. The actor is an object that encapsulates state and behavior, and communicates exclusively by exchanging messages which are placed into the recipient’s mailbox.
What’s the difference between actor model and CSP?
Replace “actor model” with “Communicating sequential processes” (CSP), and it will be also “true”, because CSP and actor model systems can be modelled by one another. Given actor model you can go and implement it using microservices, or SOA, or even email, but it does not mean they are at the same level of abstraction to truly compare.
Can you change a microservice under the hood?
As long as you don’t break the contracts or interfaces, you can change any microservice implementation under the hood and add new functionality without breaking the other microservices that depend on it.