Tag: design patterns

  • How to implement Event Sourcing in Spring Boot?

    How to implement Event Sourcing in Spring Boot?

    All our web applications deal with data. We store this data mostly in a database. The data which is stored thus represents the current state of the data. For example , if you have a Customer table the table will have entries which represent the current state of the customer (what their name is and…

  • How to implement Builder pattern in Java

    Let’s prepare Vanjaram Fish Curry , a complex object in Java. Let’s use Builder Pattern right out of the books of the Gang of Four. In fact I bought this book recently and used the recipe given by them. Let’s start with the client code . This I believe gives a better perspective to decode…