Category Archives: Architecture

Microservice, enterprise system, design partern

Apache Axis2 Client Service Timeout

I used the Apache Axis2 Client service to send a request to a service provider. However, the processes take too long, sometime up to 5 minutes at the service provider side. As result, my request is always timeout after 60 seconds. My application is written by Spring Boot and maven configuration to generate Java code… Read More »

Singleton Pattern

1. Definition. Singleton Pattern makes sure that a class only have one instance and provide a global point of access to it. It also belongs to Creation Pattern Group. Singleton Pattern should be used where we only need one of: Thread pools, caches, dialog boxes, object that handle preferences and registry settings, objects used of… Read More »

Observer Pattern

Observer Pattern defines a one-to-many relationship between a set of objects. When the state of one object changes, all of its dependents are notified/updated automatically. It also belongs to Behavior pattern group. 1. A customized notification system. Several newspaper agencies like CNN, NYTime, BBC are subscribed to a feed of new tweets and may want… Read More »

Advantages and Disadvantages of Microservices

To begin with an interesting question, is a microservice architecture a good choice for the system you’re working on? Basically, micro-service often deals with large team, multi-tenancy, supporting many user interaction models, allowing different business functions to evolve independently, and scaling. However, the best answer is it depends on complexity and productivity. If a system… Read More »

Factory Pattern

Factory Pattern is to create object through a common interface/ abstract class. It belongs to Creational Pattern group. 1. Real-life example Suppose that we have two different types of instruments in capital market – one with an Equities and another with a Dept. A company want to use an instrument to raise capital, and represents… Read More »