Showing posts with label microservices. Show all posts
Showing posts with label microservices. Show all posts
CQRS - Event Sourcing Architecture Patterns enables us build efficient Event Driven Systems.
If any organization wants to build Event Based systems, they should adhere to the principles defined by CQRS, Event Sourcing & Domain Driven Design principles. The following videos makes you to better understand how these design patterns and can help you in dealing with performance, validation, parallel updates in the data and events. And also explained how pessimistic locking and optimistic locking works with respect to Event Driven Architecture. By following the principles of these architectures you can build powerful microservices which can be easily scalable and better in performance and you will not be ended with building monolithic application.
Checkout the video on deep dive on these 2 patterns complement each other to build efficient Event Driven Systems. If you like the video, subscribe to channel and share with your friends and colleagues.
gRPC is a modern open source framework to implement microservices in an efficient way to build high performance and highly scalable applications. gRPC uses Protocol Buffers / protobuf as data format for exchange of messages between microservices unlike REST API with JSON. gRPC enables pluggable support for authentication, load balancing, health checking and tracing. Uses HTTP/2 protocol to transport the data so allows bi-directional communication between microservices
gRPC Java Complete Tutorials | Hands-on Demo To Build Microservices (APIs)
RPidugu
June 12, 2020

gRPC enables to build 4 different kinds of APIs where you can build using traditional RESTful framework. These features are a game changer for microservices implementation. Currently we are using RESTful architecture to build our APIs for microservices. But there is a lot of overhead while building APIs uisng REST with JSON. Since JSON data format is good for small volume of data. But for huge volumes JSON is a hell. JSON is a text document, it is good for investigate the data because it is human readable. But parsing takes a huge amount computing resources. What if you have multiple microservices that exchange huge volumes of data. That is gonna be a hell.
gRPC solves the all problems that we faced with REST-JSON by using Protocol Buffers as data exchange format and also protocol buffers can be used to define service definitions and generating service stubs from ready made grpc /protobuf compiler provided by google. These compilers are available for around 14-15 programming languages by the time I write this blog. And also gRPC uses the latest HTTP/2 transport product which allows bi-directional streaming capability.
gRPC provides the following 4 types of APIs
- Unary API
- Server Streaming API
- Client Streaming API
- Bi-directional Streaming API
Check the following video to know more about these 4 APIs.
Types of APIs in gRPC Framework To Implement Microservices
RPidugu
June 10, 2020

Docker Compose simplifies developer life easier while deploying microservices as containers. When you want to run docker containers you have to execute several commands for each and every container when you multiple containers. It take a lot of time to manage them while fixing bugs and running them again and again.
Docker compose solves this probel by providing a single config yml file to define all docker images and configurations in a single file and can run them with a single command. In the example shown in the below video, I am explaining how Docker Compose works and how to deploy 3 microservices that Angular fron-end application, spring boot application and postgreSQL database. Check the video and learn more about docker compose.
Docker Compose Explained with 3 Microservices Angular, Spring Boot & PostgreSQL
RPidugu
June 08, 2020
