Sunday, March 24, 2024

Popular micro services patterns

Here are some popular Microservice design patterns that a programmer should know:

  1. Service Registry pattern provides a central location for services to register themselves.
  2. Circuit Breaker allows your services to fail fast and prevent cascading failures, the circuit breaker pattern is used to isolate a failing service.
  3. API Gateway provides a common entry point for all the requests and responses from the system. So, client only remember one host/port address rather than multiple IPs for each Microservice.
  4. Event-Driven Architecture allows services to communicate with each other by emitting events.
  5. In Database per Service each service has its own database, which allows services to operate independently.
  6. Command Query Responsibility Segregation (CQRS) separates read and write requests for an application, allowing better scaling and performance.
  7. Externalized Configuration allows storing configuration data outside of the application code, making it easier to manage configuration changes.
  8. Saga Pattern manages the transaction forlong-running transactions that span multiple services.
  9. Bulkhead Pattern isolates failures within a microservice, so a single failure does not bring down the entire system.
  10. Backends for Frontends (BFF) design pattern provides a specific backend for each client. It allows the front-end team to develop features and add new client-specific functionality quickly.

Popular micro services patterns

Here are some popular Microservice design patterns that a programmer should know: Service Registry  pattern provides a  central location  fo...