Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Onion, Hexagonal is pretty popular in the dotnet world and microservices.

It's also overcomplicated for it's use-case and the main problem becomes mapping between layers and etc.

Eg. One of the code-smells would be the Web.Abstractions layer.

Just go with Vertical Slice Architecture. It dumbs everything down and if you need another technology as DB for example, you'll always need a migration of sorts, even if you have all the necessary abstractions.

Note: Currently on a solo 4 month migration project going from Cognitive Search to Elastic, yes, we use "Onion".



OT, but would you be inclined to elaborate on why you decided to migrate away from CS to Elastic? We’re currently considering CS.


Elastic search has snapshots ( iso deligation) and is cheaper/faster. Cognitive has no backups out of the box.

Ps. ES has an SQLish language that makes it easier: https://rockset.com/articles/elasticsearch-sql/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: