Mini Services Architecture Part 1
Part 1. I think the best solution for most organizations thinking on distributing their systems, is a pattern that i define as Mini Services Architecture. This pattern may or may not use Docker containers and may or may not be orchestrated by Kubernetes. These are the key aspects of this pattern:
- Turn into a Mini Service each part of the monolith that is not going to be part of a Transaction.
- Use the same PHP Framework as template for each one of these.
- Communication between each Mini Service is through REST Api calls.
- Use DTOs (Using DTOs in PHP Symfony) as contract between each part involved to ensure data consistency and integrity.
I. As I explained in the past Article: Microservices Architecture Transaction processing is key for having a robust, highly trusted, stable system.
If we consider the example in this past article, this transaction for the purchase order: