API DevOps Mobile App Development Technology

MicroServices Unleashed: A Comedy of Code and Infra

Welcome to Microservices: The Tiny Titans of infinite Tech! Here the tiniest pieces make the mightiest impact, and every service is a superhero with its own ego and might! 

— Design Patterns — 

Similar to Gangs of Four (GoF) Design Patterns, certain recurring themes can be identified in Microservices as well, let’s see if we can leverage some of them in our implementation,

Dedicated Database for Each Service 
SAGA 
  • Assign each request a unique id 
  • pass the same id to all the services involved in fulfilling the request 
  • Include this id in all log messages, warn, info or error 
  • Create a centralized exception and logging service (e.g. logstash or FluentD) that aggregates all logs in a central place 
  • Status of connections to DB or Queues or any frequently used external component 
  • Status of the host machine like disk space or RAM usage 
  • A simple application related read-only idempotent operation/logic like fetching a test User or transaction. 


Abizer Saify

Author

Abizer Saify

Abizer is a catalyst of digital and tech transformation and a leader who is passionate about people, processes and technology. He comes with a global outlook after having worked in US, Europe and ASPAC regions in BFSI, Media and manufacturing industries. Abizer is constantly learning, adapting and evolving himself with the latest in technology and business world. He is adept at digital, design thinking, UX, core applications and ERP. He can be reached at [email protected]