Onion architecture
Onion architecture organizes code in concentric layers from the domain model at the center outward through application services, domain services, and infrastructure at the edge. Dependencies point inward only, infrastructure depends on application; application depends on domain; domain depends on nothing. The pattern enforces dependency inversion through structure.
Jeffrey Palermo introduced onion architecture around 2008. It's closely related to hexagonal and clean architecture, all three enforce inward dependency through the same mechanism. The differences are presentational: onion emphasizes the concentric-circle visualization; hexagonal emphasizes ports and adapters; clean emphasizes layers explicitly. In practice teams pick one vocabulary and stick with it. The benefit is uniformity: a new engineer can find the domain logic (center), the application services (next ring), and the database code (outer ring) by structure alone, without reading every file.
See the term at work
Stride keeps issues, architecture decisions, tests and delivery data in one workspace, where the terms in this glossary are things you can open.