Domain centric architiecture – best refactoring example

One great example of refactoring data-centric .net application into domain-centric architecture is this. https://app.pluralsight.com/library/courses/n-tier-apps-part1/table-of-contents This training was released in 2012, which is 9 years old. But, this is the best example for me to apply in our company and myself, because 1) this course targets a legacy code, which we have in areas and wasn’t… Continue reading Domain centric architiecture – best refactoring example

4 Types of Event-Driven Architecture by Martin Fowler

Event Notification Address change in CRM can be sent to  Quoting System through the event. e.g. address changed. – Reverse the dependency from CRM to Quote system. – Message becomes a thing(object) to record and pass around. – events vs commands – pub/sub is nice as subscribers can sub independently.Cons: How to know what’s happening… Continue reading 4 Types of Event-Driven Architecture by Martin Fowler

Clean Architecture

Given that the number one reason why Unit Test fails is the code is not testable which make the unit test difficult, costly, un-maintainable, making the application layer independent through the interface is the most important concept in the clean architecture. 

When Test Driven Development Goes Wrong

When you feel TDD is difficult when you first started TDD, that might sign that there are improvements to make in the design. There are 5 common anti-patterns. The Liar Passes all tests with no useful assertions, which could be caused by chasing test coverage. => Write the test first, which fails with a purpose.… Continue reading When Test Driven Development Goes Wrong

Beyond Microservices in a one page

Problems Clients know too much: Auth, Encryption, etc. Hard to change a microservice -> Don’t know who’s using it. Hard to add a new microservice -> No one may use it. Being political. Responsibility for the failure in a microservice. What happened when a microservice fails. REST is slow Solutions – Useful Architectures API Gateway… Continue reading Beyond Microservices in a one page