Category: Java Architecture

Nested Transaction Implementation 0

Nested Transaction Implementation

There are two classes OrderService and OrderRepository,  OrderRepository will be called inside of OrderService. OrderRepository inserts one record of order into the database. My Purpose: When an exception happens in OrderRepository or OrderService, the transaction will rollback and...


Design Log Monitor System Prototype — 1. Spring MVC

Background In this article, a log monitor system is designed for one classic monolithic Spring MVC project, which contains three module layers: Controller, Service, and Repository. Requirement All system exceptions should be recorded. Pretty...


[Repost]Microservices in Practice

Microservices in Practice Nowadays, Microservices is one of the most popular buzz-word in the field of software architecture.  There are quite a lot of learning materials on the fundamentals and the benefits of microservices,...