Where I will put validation logic
Jan 1, 2021
Sometimes we are confused, where to put validation logic. Should we put it application layer or domain layer? Sometimes we mixed data validation with business validation. Through the post, I will try to clarify them.
Data Validation Data validation is the process of verifying whether the value of a data item comes from the given set of acceptable values or not. We should validate data when it is coming from external sources.
Dec 12, 2020
Background If weSearch through the web, lots of examples will be found for repository pattern. Different people implement it differently. There are varieties of implementations of repository pattern like a generic repository, business case specificrepository (Domain Repository), and so on. Most of the time it is found that people do redundant work like they use the generic repository and also business case specific repository but both contain similar activity/ behavior. Through the post, I will try to sharesome of my findings and thinking.
Adding exception detail while moving message to DLQ and limiting parallel message processing in Azure Service Bus
Dec 4, 2020
Background We are considering we already completed getting started part from here and we can handle/ process messages from queue and topic. Now we would like to move one step further. If we want to process message, then there is always a chance of exception. Once exception happened message is moved to dead letter queue (DLQ) automatically. From DLQ we can explore the message and check the message detail but unfortunately there is no exception detail.