You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My team used your book on clean architecture as reference for implementing new microservices. We absolutely love your book and the architecture approach.
Nevertheless, we want to share a major performance issue we encountered while using your template for the SefValidating abstract class:
During load testing, we noticed that our application used a lot of memory and requests took a long time even under small loads. Using profiling, we noticed that creating a ValidatorFactory during instantiation of every domain object was the problem.
We solved the issue by adding the ValidatorFactory as a static attribute in the abstract class.
Hi 👋
My team used your book on clean architecture as reference for implementing new microservices. We absolutely love your book and the architecture approach.
Nevertheless, we want to share a major performance issue we encountered while using your template for the
SefValidating
abstract class:During load testing, we noticed that our application used a lot of memory and requests took a long time even under small loads. Using profiling, we noticed that creating a
ValidatorFactory
during instantiation of every domain object was the problem.We solved the issue by adding the
ValidatorFactory
as a static attribute in the abstract class.Cheers,
Benjamin
buckpal/src/main/java/io/reflectoring/buckpal/common/SelfValidating.java
Lines 14 to 17 in f5a9be5
The text was updated successfully, but these errors were encountered: