Five Ideas to write Better Cloud Native Microservices

Hello Readers let's proceed with our microservice series and explore some strategies to enhance your microservice development.


According to the principles of microservices architecture, our systems should include features such as CQRS, Event Sourcing, User Schema for different databases, among others.

Before we begin, it's important to determine whether we actually need to transition from a monolithic to a microservices architecture. Companies like Netflix and Google require this because they manage multiple services, and their applications are updated frequently. Deciding when to start breaking down a monolith can be challenging, and not all software needs to be split into microservices. However, applications like e-commerce are well-suited for microservices architecture since they are designed with a Service-Oriented Architecture in mind.

The process of adopting microservices begins with decomposing your data and designing database schemas, aiming for one database per service. To accomplish this, start with a small monolith to understand your dependencies, whether they are relational or transactional data.

In microservices architecture, service discovery is crucial for enabling inter-service communication. It's important to write well-defined public APIs to facilitate the discovery and interaction between microservices.

Microservices are typically deployed in containers because they offer service-level isolation and are easy to set up, requiring only a single process to run and terminate.

Idea #1: Take a REST:

CRUD Operations API tools

Advantages: Simple CRUD without SQL, Rapid Development, Easy to implement, No driver dependencies, Secure

Disadvantages: Slower than native DB access (JDBC) , DBA setup, no transaction, no connection pooling , black-box approach

Solution : Auto REST Enabling a Table

Endpoints for Get by Id [Get] ,

Custom endpoint , when post by user and user id. Micronaut Declarative HTTP Client

Idea #2 : Use Multi-Model Instead of NoSQL:

Advantages : Simple CRUD without SQL, Rapid, Easy

Idea #3 : Multimodel makes mashups life easier

Schema per Service, Relation Data in one service,

Idea #4 : Deploy microservices as Native Images

Advantages: Improved RAM and CPU performance

Idea #5: Use Data Access Toolkits: e.g. Spring Data, Micronaut Data

CRUD with raw SQL. Ahead of time compilation


With that in mind, continue to be awesome and share this post.

要查看或添加评论,请登录

Avinash Patil的更多文章

  • What is System Design anyway??

    What is System Design anyway??

    Howdy Fellow Readers, let’s put it a thought that we all are designers and how we articulate our roadmap to achieve…

  • The 12-Factor App: Pythonic Way

    The 12-Factor App: Pythonic Way

    Let’s discuss some of Software Principles and defy the title of the blog. The 12-Factor App is a methodology for…

  • Cloud-Agnostic vs Cloud-Native

    Cloud-Agnostic vs Cloud-Native

    Hello Readers let’s discuss the key choices and differences between cloud-native and cloud-agnostic services…

  • Product management in a nutshell

    Product management in a nutshell

    I will discuss my perspective on product management, which to me is not necessarily about creating a breakthrough…

  • Keep you microservices clean, neat and tidy.

    Keep you microservices clean, neat and tidy.

    Hello, fellow readers, let’s delve into microservices first. I have a devotion that microservices represent a…

  • Keep you microservices clean, neat and tidy.

    Keep you microservices clean, neat and tidy.

    Hello, fellow readers, let’s delve into microservices first. I have a devotion that microservices represent a…

  • Validate data-driven decision making with DBT tool

    Validate data-driven decision making with DBT tool

    Let’s proceed with the ‘All Things Data’ series in this blog. We’ll think conclusively to understand why data…

  • Why Deviate from Data Driven Decision ?

    Why Deviate from Data Driven Decision ?

    In Silicon Valley, there's a saying that hope is a waking dream, and all dreams are realized through investment. ISV…

  • Data Downtime, is the new oil leaking ?

    Data Downtime, is the new oil leaking ?

    In today’s data-centric world, understanding the common causes of data downtime is crucial for any organization. Data…

  • Cilium?-?Selector Story to Redefine Security Necessities

    Cilium?-?Selector Story to Redefine Security Necessities

    This topic is highly sensitive and requires secure handling, so it's crucial to be vigilant and discerning. The focus…

社区洞察

其他会员也浏览了