Assertfail

All Posts assertfail

View the Blog on GitHub wallymathieu

Common enterprise architectures

03 Jun 2016

Some patterns I’ve usually encountered while working code bases written by .net developers. You can also read more on msdn.

Domain driven design inspired

Usually you find classes with postfix name like:

People are often confused by “Unit of work” also mentioned in connection to these patterns. Many OR-mappers implement the repository pattern. Popular libraries include Entity Framework, NHibernate and RavenDB (library and database).

Key concept

The key point of DDD is ubiquitous Language. Being able to have roughly the same type of concepts as the users can be very helpful.

DAL

This type of architecture is quite simple. The main benefit of it is that it’s easy for people to grok. This type of architecture is not as popular anymore because it increases the amount of code you have to write.

In this type of architecture it’s not uncommon to have an additional layer in the database implemented by stored procedures.

Message queue & Service Bus

Popular choices I’ve encountered are RabbitMQ and MSMQ. A popular library is MassTransit.

Provides a way to lower cohesion between components. Can also be helpful if you want to distribute work.

Tags

  • meta
  • Comments or errors? Fork post and do a pull request on github