Word
onion architecture
Definition
compound. a way of designing computer software where the most important code is in the middle, and other parts are added in layers around it. This keeps the main logic clean because the inner layers do not depend on the outer ones.
compound. A software architectural pattern that organises code into concentric layers, where dependencies only point inward toward the core domain logic. This ensures that the business logic remains independent of external concerns like databases, frameworks, or user interfaces.
Examples
“We used onion architecture to keep our business logic separate from the database.”
“By adopting onion architecture, the team ensured that they could swap their database provider without changing any of the core application rules.”
“The primary benefit of onion architecture is the decoupling of the application core from infrastructure concerns, facilitating easier unit testing and long-term maintenance through strict dependency inversion.”
Examples
simple
“We used onion architecture to keep our business logic separate from the database.”
contextual
“By adopting onion architecture, the team ensured that they could swap their database provider without changing any of the core application rules.”
complex
“The primary benefit of onion architecture is the decoupling of the application core from infrastructure concerns, facilitating easier unit testing and long-term maintenance through strict dependency inversion.”
Usage
Typically used in the singular as a proper or common noun to describe a specific design philosophy.
Etymology
Coined by Jeffrey Palermo in 2008, the term employs the vegetable as a metaphor for concentric layers of dependency.
Etymology adapted from Wiktionary, available under CC BY-SA 4.0.
Domain
- Exam level
- CambridgeCambridgeCambridge English QualificationsThe exam suite from Cambridge University Press & Assessment, from A1 Movers up to C2 Proficiency. The benchmark names double as CEFR labels.C2 ProficiencyIELTSIELTSInternational English Language Testing SystemThe 0–9 band test co-owned by the British Council, IDP, and Cambridge. Used for university entry, work, and migration.8.5–9.0TOEFL iBTTOEFL iBTTest of English as a Foreign Language, Internet-Based TestETS's academic English test, the standard route for US university admissions. Scored 0–120, with a 1–6 scale since 2026.1–6 scale: 6.0114–120
- Level
- C2 · Proficiency
- Updated
- アルファベット
- 読み方の一覧 →
QR code
englishreference.com/q/onion-architecture