Slide 1

Slide 1 text

#41 TechTalks Monolithic vs Microservices Which one is better? Muhammad Yusuf Manshur Software Engineer at Widya Analytic

Slide 2

Slide 2 text

What is the primary goal of software?

Slide 3

Slide 3 text

OSI Models

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Contents Monolithic 01 What is Monolithic architecture Microservices 02 What are Microservices architecture Differences 03 Discuss the differences and advantages of the two architectures When is it 04 When is it appropriate to use Monolithic or Microservices architecture

Slide 6

Slide 6 text

Monolithic Monolithic application has single code base with multiple modules. It has single build system which build entire application and/or dependency.

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Key Characteristics of Distributed Systems

Slide 9

Slide 9 text

Microservices Involves smaller applications deployed independently as loosely coupled services, tied together through application integration. From a software engineering perspective, microservices can be simpler to develop.

Slide 10

Slide 10 text

How does Microservices works? ● Synchronous ○ REST, RPC ● Asynchronous ○ Common Data ○ Double Queue (request-response) ○ Event Driven Architecture ○ etc. ● Database per service (recomended) ● Shared Database Communication Patterns Database Patterns

Slide 11

Slide 11 text

Direct Call or Remote Procedure Call (RPC) Source: https://techdozo.dev/grpc-synchronous-and-asynchronous-server-streaming-rpc/

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Shared Database

Slide 14

Slide 14 text

Shared Database

Slide 15

Slide 15 text

How do you build Microservices? The following are the key points to think about at that time. 1. Divide data into bounded contexts or data domains. 2. Keep communication between services simple. 3. Build your microservices architecture for failure. 4. Emphasize monitoring to ease microservices testing. 5. Embrace continuous delivery to reduce deployment friction

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Why using Monolithic? Source: https://www.qulix.com/about/monolithic-vs-microservices-architechture/

Slide 19

Slide 19 text

Why using Microservices? Source: https://www.qulix.com/about/monolithic-vs-microservices-architechture/

Slide 20

Slide 20 text

Microservices mean you will have farms, not pets.

Slide 21

Slide 21 text

Distributed Monoliths vs. Microservices: Which Are You Building? Distributed Monolith is a system that resembles the microservices architecture but is tightly coupled within itself like a monolithic application. Most people misunderstand the concept of microservices

Slide 22

Slide 22 text

Running microservices is not a sprint Should be seen as a journey rather than the immediate goal for a team. Start small to understand the technical requirements of a distributed system, how to fail gracefully, and scale individual components

Slide 23

Slide 23 text

Role #1 Don’t use Microservices

Slide 24

Slide 24 text

CREDITS: This presentation template was created by Slidesgo, including icons by Flaticon, and infographics & images by Freepik Thanks Please keep this slide for attribution