Friday, April 9, 2021

Developing Applications with the Microservices Architecture by Chris Richardson (Complete)

 April 9, 2021

Here is the link. 

Background: The Microservices pattern, which structures an application as a set of small, narrowly focused, independently deployable services, is becoming an increasingly popular way to build cloud-native applications. This approach avoids many of the problems of a monolithic architecture. It simplifies deployment and let’s you create highly scalable and available applications.

About this Talk: In this talk Chris Richardson describes the microservice architecture and how to use it to build complex applications. He explains how techniques such as Command Query Responsibility Segregation (CQRS) and Event Sourcing address the key challenges of developing applications with this architecture. We will also cover some of the various frameworks such as NodeJS and Spring Boot that you can use to implement microservices.

1:04:14/ 1:33/55

Use event-driven architecture

  • How
    • Services publish events when data changes
    • Subscribing services update their data
  • Benefits
    • Simpler
    • Better availability
  • Drawbacks
    • Application has to handle eventually consistent data
    • Application has to handle duplicate events
How do services publish events?
To maintain consistency the application must atomically publish an event whenever a domain object chagnes

1:06:21/ 1:33:55
How to generate events?
  • Database triggers
  • Hibernate event listener
  • Ad hoc event publishing code mixed into businesses logic
  • Domain events - "formal" modeling of events
  • Event sourcing
1:08:03/ 1:33:55
Automatically publishing events

Now it is 12:19 AM. Better go to sleep and get up early and study.


No comments:

Post a Comment