Modelling Microservice Patterns in Code
There is a number of simple interactions a service can support. Which pattern is best for your application can depend on what an existing application expects, and what latency requirements you have. Broadly speaking these interactions fall into client-server and peir-to-peir messaging.
For peir-to-peir messaging, one approach to take is Lambda Architecture however from supporting GUIs, client-server models can be easier to work with.
I feel it is important to design components which could be tested and debugged together, as in a monolith, but can be deployed as multiple right sized services to different threads, JVMs, or machines.
Post a Comment