10 Commandments
for Scalable
Mircoservices
Archanaa Ravikumar
Lead Engineer, BCG Digital Ventures
Pooja Subramanian
Lead Consultant, ThoughtWorks Technologies
● Do not share the data stores outside the
service
● Always separate data models from
contracts
● Expose data via well defined APIs
1. Stick to your service boundaries
Product Name
Category
Price
Address Delivery
Address
Slots
Payment Order
Refund Exchange
User
CredentialsProfile
Catalog
PromotionVouchers
2. Expose your APIs via a gateway
● Restrict the business logic in the gateway
● Ensure routing & rate limiting are applied
● Leverage service mesh to keep application
logic light
Service
Service Sidecar
Sidecar Service
Service Sidecar
Sidecar
API Gateway
Service
● Synchronous vs Asynchronous
● REST vs gRPC
● JSON vs protobuf
Service
Service Service
Client 1 Client 2
API Gateway
REST calls gRPC calls Brokered
messages
Message
Broker
3. Choose the right communication protocol
4. Version your APIs
● Maintain backward compatibility
● Do not discount the maintenance overhead
● Remember to decommission APIs
appropriately
● Follow a consistent strategy for versioning
for all services
Service
Service
V1
Service
V2
Client 1 Client 2 Client 1 Client 2
v1 v2 v1 v2
● Cache data where possible
● Optimise data storage based on access
patterns (read or write optimised)
● Leverage parallelism & asynchronous calls
● Employ the service mesh for load balancing
& scaling
5. Don’t forget to make services performant
6. Remember, observability matters
● Choose the observability levels appropriate
to your application
● Ensure consistent logging & aggregation
across all components
● Utilize centralised dashboards for unified
views
● Remember the importance of tracing of
requests & responses
Correlation ID Request/Response Tracers
Aggregation Profiling
Monitoring Troubleshooting
TelemetryLogs Health Checks
Alerting
6. Remember, observability matters
● There’s always the usual suspects:
○ Unit tests
○ Integration Tests
○ End to end tests
● Leverage service virtualisation for
predictable integration tests
● Use consumer driven contract
testing when the producer and
consumer are rapidly evolving at
the same time
Unit Tests
Service Virtualisation /
Integration Tests
End to End Tests
Contract
Tests
UI
Tests
Service
Service
Service
Service
Client 1 Client 2
API Gateway
Service
7. Ensure sufficient test coverage at all layers
● Use Architecture Decision Records (ADRs)
to track all major system design decisions
● Provide consistent API Documentation
with
○ Request contracts
○ Response contracts
○ Error codes
● Tests are documentation too! So write
good descriptive tests
8.Do not discount documentation
Container
● Always use TLS to secure communication
when APIs exposed to external consumers
● Ensure that access & identity tokens get
validated for every incoming request
● Encrypt sensitive data passing between
services
● Encrypt sensitive data being stored
● Use rate limiting to prevent DDoS
● Don’t forget to secure your infrastructure
9. Protect the application ecosystem at every layer
Service
API Gateway
Service
token
https
https
Client
https
Container Container
Cluster
encrypt
10. Do not build a distributed monolith
● Watch out for deployment complexities where
○ services are not independently
deployable
○ Services are not independantly scalable
● Look out for increased chattiness between
services
● Avoid duplicate data in each data store since
this affects data integrity
Service
Service
Service Service
Client 1 Client 2
API Gateway
Service
Service
v 80.1.5
v 250.2.0
v 1.18.2
v 25.2.0
v 25.2.0
v 25.2.0
1. Stick to your service boundaries
2. Expose your APIs via a gateway
3. Choose the right communication protocol
4. Version your APIs
5. Don't forget to make services performant
6. Remember, observability matters
7. Ensure sufficient test coverage at all layers
8. Do not discount documentation
9. Protect the application ecosystem at every layer
10. Do not build a distributed monolith
The 10 commandments
Thank You!
Archanaa Ravikumar
Lead Engineer, BCG Digital Ventures
archanaa.ravikumar@bcgdv.com
https://www.linkedin.com/in/ravikumar-archanaa/
Pooja Subramanian
Lead Consultant, ThoughtWorks Technologies
poojasub@thoughtworks.com
https://www.linkedin.com/in/pooja-subramanian-17bbba3b/

More Related Content

PDF
apidays LIVE JAKARTA - Enterprise API management in agile integration by Ragh...
PDF
apidays LIVE LONDON - Architecting Scalable Software Platforms for IoT Applic...
PDF
apidays LIVE LONDON - Protecting financial-grade APIs - Getting the right API...
PDF
apidays LIVE JAKARTA - Productising APIs: A journey in how we built API produ...
PDF
apidays LIVE Paris - Avoid Building a Microservices Death Star by Przemek Kulik
PDF
Which APIs? which business models - A real-world guide for African banks.
PPTX
apidays LIVE Jakarta - REST the events: REST APIs for Event-Driven Architectu...
PDF
apidays LIVE Paris - The Business of APIs by Jed Ng
apidays LIVE JAKARTA - Enterprise API management in agile integration by Ragh...
apidays LIVE LONDON - Architecting Scalable Software Platforms for IoT Applic...
apidays LIVE LONDON - Protecting financial-grade APIs - Getting the right API...
apidays LIVE JAKARTA - Productising APIs: A journey in how we built API produ...
apidays LIVE Paris - Avoid Building a Microservices Death Star by Przemek Kulik
Which APIs? which business models - A real-world guide for African banks.
apidays LIVE Jakarta - REST the events: REST APIs for Event-Driven Architectu...
apidays LIVE Paris - The Business of APIs by Jed Ng

What's hot (20)

PPTX
apidays LIVE JAKARTA - APIs as Products in payments, telecommunications and D...
PDF
Leveraging Async APIs to deliver cross domain agile collaboration
PDF
apidays LIVE JAKARTA - How we Build APIs and Workflows at Slack by Bear Douglas
PDF
Changing the game in hospitality integrations
PDF
[WSO2 API Day Toronto 2019] Cloud-native Integration for the Enterprise
PPTX
apidays LIVE LONDON - API Standards and Governance Platform by Nicoleta Stoica
PDF
apidays LIVE Paris - Potential of API integrations, common traps and advices ...
PDF
apidays LIVE Australia 2020 - Data with a Mission by Matt McLarty
PDF
apidays LIVE Jakarta - Serverless powered Low Code by Alex-Adrien Auger, Sipios
PDF
[apidays Live Australia] - Quantum Duality of “API as a business and a techno...
PDF
apidays LIVE Australia 2020 - The Evolution of APIs: Events and the AsyncAPI ...
PDF
Api Gateway
PDF
apidays LIVE Australia 2020 - Building an Enterprise Eventing Platform by Gna...
PDF
Blowing up the Monolith: Practical Advice on Microservices
PPTX
apidays LIVE Jakarta - Building an Event-Driven Architecture by Harin Honesty...
PDF
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
PDF
Api architectures for the modern enterprise
PPTX
apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...
PDF
apidays LIVE Paris 2021 - Why Can’t Us Consumers Have APIs by Salman Farmanfa...
PPT
apidays LIVE Helsinki & North - Bye bye to the insurance monolith - case Eule...
apidays LIVE JAKARTA - APIs as Products in payments, telecommunications and D...
Leveraging Async APIs to deliver cross domain agile collaboration
apidays LIVE JAKARTA - How we Build APIs and Workflows at Slack by Bear Douglas
Changing the game in hospitality integrations
[WSO2 API Day Toronto 2019] Cloud-native Integration for the Enterprise
apidays LIVE LONDON - API Standards and Governance Platform by Nicoleta Stoica
apidays LIVE Paris - Potential of API integrations, common traps and advices ...
apidays LIVE Australia 2020 - Data with a Mission by Matt McLarty
apidays LIVE Jakarta - Serverless powered Low Code by Alex-Adrien Auger, Sipios
[apidays Live Australia] - Quantum Duality of “API as a business and a techno...
apidays LIVE Australia 2020 - The Evolution of APIs: Events and the AsyncAPI ...
Api Gateway
apidays LIVE Australia 2020 - Building an Enterprise Eventing Platform by Gna...
Blowing up the Monolith: Practical Advice on Microservices
apidays LIVE Jakarta - Building an Event-Driven Architecture by Harin Honesty...
The Best of Both Worlds: Introducing WSO2 API Manager 4.0.0
Api architectures for the modern enterprise
apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...
apidays LIVE Paris 2021 - Why Can’t Us Consumers Have APIs by Salman Farmanfa...
apidays LIVE Helsinki & North - Bye bye to the insurance monolith - case Eule...
Ad

Similar to apidays LIVE JAKARTA - 10 commandments for scalable microservices by Archanaa Ravikumar & Pooja Subramanian (20)

PDF
apidays LIVE Paris - Creating a scalable ecosystem of Microservices by Archan...
PDF
API Gateway report
PDF
Microservices Architecture
PDF
Consumer-Driven Contract Testing With Postman
PDF
Ato Z of Microservices Architecture by Systango
PDF
[Workshop] API-driven Integration
PPTX
apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...
PPTX
Yotpo microservices
PDF
MRA AMA Part 8: Secure Inter-Service Communication
PDF
MuleSoft Manchester Meetup #4 slides 11th February 2021
PDF
[APIdays NY] Managing the usage of Asynchronous APIs: What does it take?
PDF
Orchestration Patterns for Microservices with Messaging by RabbitMQ
PDF
API Management within a Microservice Architecture
PPTX
API Management Within a Microservices Architecture
PDF
WSO2 API Microgateway for Easier Development and Greater Scalability
PDF
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
PDF
Hybrid API Management with Kong - Ivan Rylach, Kong Summit, 2020
PDF
Study Notes - Using an API Gateway
PDF
Confluent Partner Tech Talk with Reply
PDF
Cpp In Soa
apidays LIVE Paris - Creating a scalable ecosystem of Microservices by Archan...
API Gateway report
Microservices Architecture
Consumer-Driven Contract Testing With Postman
Ato Z of Microservices Architecture by Systango
[Workshop] API-driven Integration
apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...
Yotpo microservices
MRA AMA Part 8: Secure Inter-Service Communication
MuleSoft Manchester Meetup #4 slides 11th February 2021
[APIdays NY] Managing the usage of Asynchronous APIs: What does it take?
Orchestration Patterns for Microservices with Messaging by RabbitMQ
API Management within a Microservice Architecture
API Management Within a Microservices Architecture
WSO2 API Microgateway for Easier Development and Greater Scalability
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
Hybrid API Management with Kong - Ivan Rylach, Kong Summit, 2020
Study Notes - Using an API Gateway
Confluent Partner Tech Talk with Reply
Cpp In Soa
Ad

More from apidays (20)

PDF
apidays Munich 2025 - The Physics of Requirement Sciences Through Application...
PDF
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
PDF
apidays Munich 2025 - Making Sense of AI-Ready APIs in a Buzzword World, Andr...
PDF
apidays Munich 2025 - Integrate Your APIs into the New AI Marketplace, Senthi...
PDF
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
PDF
apidays Munich 2025 - Let’s build, debug and test a magic MCP server in Postm...
PDF
apidays Munich 2025 - The life-changing magic of great API docs, Jens Fischer...
PDF
apidays Munich 2025 - Automating Operations Without Reinventing the Wheel, Ma...
PDF
apidays Munich 2025 - Geospatial Artificial Intelligence (GeoAI) with OGC API...
PPTX
apidays Munich 2025 - GraphQL 101: I won't REST, until you GraphQL, Surbhi Si...
PPTX
apidays Munich 2025 - Effectively incorporating API Security into the overall...
PPTX
apidays Munich 2025 - Federated API Management and Governance, Vince Baker (D...
PPTX
apidays Munich 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (Aavista Oy)
PPTX
apidays Munich 2025 - Streamline & Secure LLM Traffic with APISIX AI Gateway ...
PPTX
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
PPTX
apidays Munich 2025 - Building an AWS Serverless Application with Terraform, ...
PDF
apidays Helsinki & North 2025 - REST in Peace? Hunting the Dominant Design fo...
PDF
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
PDF
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
PDF
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...
apidays Munich 2025 - The Physics of Requirement Sciences Through Application...
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
apidays Munich 2025 - Making Sense of AI-Ready APIs in a Buzzword World, Andr...
apidays Munich 2025 - Integrate Your APIs into the New AI Marketplace, Senthi...
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
apidays Munich 2025 - Let’s build, debug and test a magic MCP server in Postm...
apidays Munich 2025 - The life-changing magic of great API docs, Jens Fischer...
apidays Munich 2025 - Automating Operations Without Reinventing the Wheel, Ma...
apidays Munich 2025 - Geospatial Artificial Intelligence (GeoAI) with OGC API...
apidays Munich 2025 - GraphQL 101: I won't REST, until you GraphQL, Surbhi Si...
apidays Munich 2025 - Effectively incorporating API Security into the overall...
apidays Munich 2025 - Federated API Management and Governance, Vince Baker (D...
apidays Munich 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (Aavista Oy)
apidays Munich 2025 - Streamline & Secure LLM Traffic with APISIX AI Gateway ...
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
apidays Munich 2025 - Building an AWS Serverless Application with Terraform, ...
apidays Helsinki & North 2025 - REST in Peace? Hunting the Dominant Design fo...
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...

Recently uploaded (20)

PDF
DP Operators-handbook-extract for the Mautical Institute
PPT
Module 1.ppt Iot fundamentals and Architecture
PPT
Geologic Time for studying geology for geologist
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Hybrid model detection and classification of lung cancer
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Modernising the Digital Integration Hub
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
STKI Israel Market Study 2025 version august
PDF
Unlock new opportunities with location data.pdf
PPTX
The various Industrial Revolutions .pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPT
What is a Computer? Input Devices /output devices
PDF
Zenith AI: Advanced Artificial Intelligence
DP Operators-handbook-extract for the Mautical Institute
Module 1.ppt Iot fundamentals and Architecture
Geologic Time for studying geology for geologist
observCloud-Native Containerability and monitoring.pptx
Developing a website for English-speaking practice to English as a foreign la...
Hybrid model detection and classification of lung cancer
sustainability-14-14877-v2.pddhzftheheeeee
O2C Customer Invoices to Receipt V15A.pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Getting Started with Data Integration: FME Form 101
Modernising the Digital Integration Hub
Assigned Numbers - 2025 - Bluetooth® Document
A review of recent deep learning applications in wood surface defect identifi...
STKI Israel Market Study 2025 version august
Unlock new opportunities with location data.pdf
The various Industrial Revolutions .pptx
Enhancing emotion recognition model for a student engagement use case through...
What is a Computer? Input Devices /output devices
Zenith AI: Advanced Artificial Intelligence

apidays LIVE JAKARTA - 10 commandments for scalable microservices by Archanaa Ravikumar & Pooja Subramanian

  • 1. 10 Commandments for Scalable Mircoservices Archanaa Ravikumar Lead Engineer, BCG Digital Ventures Pooja Subramanian Lead Consultant, ThoughtWorks Technologies
  • 2. ● Do not share the data stores outside the service ● Always separate data models from contracts ● Expose data via well defined APIs 1. Stick to your service boundaries Product Name Category Price Address Delivery Address Slots Payment Order Refund Exchange User CredentialsProfile Catalog PromotionVouchers
  • 3. 2. Expose your APIs via a gateway ● Restrict the business logic in the gateway ● Ensure routing & rate limiting are applied ● Leverage service mesh to keep application logic light Service Service Sidecar Sidecar Service Service Sidecar Sidecar API Gateway
  • 4. Service ● Synchronous vs Asynchronous ● REST vs gRPC ● JSON vs protobuf Service Service Service Client 1 Client 2 API Gateway REST calls gRPC calls Brokered messages Message Broker 3. Choose the right communication protocol
  • 5. 4. Version your APIs ● Maintain backward compatibility ● Do not discount the maintenance overhead ● Remember to decommission APIs appropriately ● Follow a consistent strategy for versioning for all services Service Service V1 Service V2 Client 1 Client 2 Client 1 Client 2 v1 v2 v1 v2
  • 6. ● Cache data where possible ● Optimise data storage based on access patterns (read or write optimised) ● Leverage parallelism & asynchronous calls ● Employ the service mesh for load balancing & scaling 5. Don’t forget to make services performant
  • 8. ● Choose the observability levels appropriate to your application ● Ensure consistent logging & aggregation across all components ● Utilize centralised dashboards for unified views ● Remember the importance of tracing of requests & responses Correlation ID Request/Response Tracers Aggregation Profiling Monitoring Troubleshooting TelemetryLogs Health Checks Alerting 6. Remember, observability matters
  • 9. ● There’s always the usual suspects: ○ Unit tests ○ Integration Tests ○ End to end tests ● Leverage service virtualisation for predictable integration tests ● Use consumer driven contract testing when the producer and consumer are rapidly evolving at the same time Unit Tests Service Virtualisation / Integration Tests End to End Tests Contract Tests UI Tests Service Service Service Service Client 1 Client 2 API Gateway Service 7. Ensure sufficient test coverage at all layers
  • 10. ● Use Architecture Decision Records (ADRs) to track all major system design decisions ● Provide consistent API Documentation with ○ Request contracts ○ Response contracts ○ Error codes ● Tests are documentation too! So write good descriptive tests 8.Do not discount documentation
  • 11. Container ● Always use TLS to secure communication when APIs exposed to external consumers ● Ensure that access & identity tokens get validated for every incoming request ● Encrypt sensitive data passing between services ● Encrypt sensitive data being stored ● Use rate limiting to prevent DDoS ● Don’t forget to secure your infrastructure 9. Protect the application ecosystem at every layer Service API Gateway Service token https https Client https Container Container Cluster encrypt
  • 12. 10. Do not build a distributed monolith ● Watch out for deployment complexities where ○ services are not independently deployable ○ Services are not independantly scalable ● Look out for increased chattiness between services ● Avoid duplicate data in each data store since this affects data integrity Service Service Service Service Client 1 Client 2 API Gateway Service Service v 80.1.5 v 250.2.0 v 1.18.2 v 25.2.0 v 25.2.0 v 25.2.0
  • 13. 1. Stick to your service boundaries 2. Expose your APIs via a gateway 3. Choose the right communication protocol 4. Version your APIs 5. Don't forget to make services performant 6. Remember, observability matters 7. Ensure sufficient test coverage at all layers 8. Do not discount documentation 9. Protect the application ecosystem at every layer 10. Do not build a distributed monolith The 10 commandments
  • 14. Thank You! Archanaa Ravikumar Lead Engineer, BCG Digital Ventures archanaa.ravikumar@bcgdv.com https://www.linkedin.com/in/ravikumar-archanaa/ Pooja Subramanian Lead Consultant, ThoughtWorks Technologies poojasub@thoughtworks.com https://www.linkedin.com/in/pooja-subramanian-17bbba3b/