<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reference on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/reference/</link><description>Recent content in Reference on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/tags/reference/index.xml" rel="self" type="application/rss+xml"/><item><title>Diagram Building Blocks for System Design</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/diagram-patterns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/diagram-patterns/</guid><description>&lt;h2 id="how-to-use-this-page"&gt;How to use this page&lt;a class="heading-anchor" href="#how-to-use-this-page" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Each building block below has:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;a &lt;strong&gt;Mermaid snippet&lt;/strong&gt; you can copy into an article (view the page source in the repository for the exact text);&lt;/li&gt;&#10;&lt;li&gt;the component&amp;rsquo;s &lt;strong&gt;responsibility&lt;/strong&gt;;&lt;/li&gt;&#10;&lt;li&gt;its typical &lt;strong&gt;failure modes&lt;/strong&gt;;&lt;/li&gt;&#10;&lt;li&gt;the main &lt;strong&gt;trade-off&lt;/strong&gt; to mention.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The notation is consistent across this handbook:&lt;/p&gt;</description></item><item><title>Java &amp; Spring Quick Reference</title><link>https://samirsahoo.github.io/design-patterns-hub/self-review/quick-reference/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/self-review/quick-reference/</guid><description>&lt;h2 id="java-choices"&gt;Java choices&lt;a class="heading-anchor" href="#java-choices" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th&gt;Need&lt;/th&gt;&#10; &lt;th&gt;Use&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;List&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;ArrayList&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Lookup&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;HashMap&lt;/code&gt; / &lt;code&gt;HashSet&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Sorted or range queries&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;TreeMap&lt;/code&gt; / &lt;code&gt;TreeSet&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Queue or stack&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;ArrayDeque&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Thread-safe map&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;ConcurrentHashMap&lt;/code&gt; (&lt;code&gt;computeIfAbsent&lt;/code&gt;, &lt;code&gt;merge&lt;/code&gt;)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Producer–consumer&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;BlockingQueue&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Counter under contention&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;LongAdder&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Blocking I/O fan-out&lt;/td&gt;&#10; &lt;td&gt;Virtual threads (&lt;code&gt;newVirtualThreadPerTaskExecutor&lt;/code&gt;)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;CPU-bound parallel work&lt;/td&gt;&#10; &lt;td&gt;A fixed pool ≈ cores, or &lt;code&gt;ForkJoinPool&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Async composition&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;CompletableFuture&lt;/code&gt; (always pass an executor)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Context passing&lt;/td&gt;&#10; &lt;td&gt;Scoped values (Java 25), else ThreadLocal&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;h2 id="modern-java-by-version"&gt;Modern Java by version&lt;a class="heading-anchor" href="#modern-java-by-version" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th&gt;Version&lt;/th&gt;&#10; &lt;th&gt;Highlights&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;17 LTS&lt;/td&gt;&#10; &lt;td&gt;Sealed classes, records (16), pattern-matching &lt;code&gt;instanceof&lt;/code&gt; (16), text blocks (15)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;21 LTS&lt;/td&gt;&#10; &lt;td&gt;Virtual threads, record patterns, pattern-matching &lt;code&gt;switch&lt;/code&gt;, sequenced collections, generational ZGC&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;22–24&lt;/td&gt;&#10; &lt;td&gt;Unnamed &lt;code&gt;_&lt;/code&gt;, FFM API, stream gatherers, no &lt;code&gt;synchronized&lt;/code&gt; pinning (24)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;strong&gt;25 LTS&lt;/strong&gt;&lt;/td&gt;&#10; &lt;td&gt;Flexible constructor bodies, module imports, compact source files, scoped values, compact object headers&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;26&lt;/td&gt;&#10; &lt;td&gt;HTTP/3 client, warnings for reflective &lt;code&gt;final&lt;/code&gt; mutation&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;27 (Sept 2026)&lt;/td&gt;&#10; &lt;td&gt;G1 the default everywhere, post-quantum hybrid TLS key exchange; previews continue&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;h2 id="spring-annotations-by-purpose"&gt;Spring annotations by purpose&lt;a class="heading-anchor" href="#spring-annotations-by-purpose" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th&gt;Purpose&lt;/th&gt;&#10; &lt;th&gt;Annotations&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Beans&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@Component&lt;/code&gt;, &lt;code&gt;@Service&lt;/code&gt;, &lt;code&gt;@Repository&lt;/code&gt;, &lt;code&gt;@Configuration&lt;/code&gt;, &lt;code&gt;@Bean&lt;/code&gt;, &lt;code&gt;@Primary&lt;/code&gt;, &lt;code&gt;@Qualifier&lt;/code&gt;, &lt;code&gt;@Lazy&lt;/code&gt;, &lt;code&gt;@Scope&lt;/code&gt;, &lt;code&gt;@Profile&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Lifecycle&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@PostConstruct&lt;/code&gt;, &lt;code&gt;@PreDestroy&lt;/code&gt;, &lt;code&gt;SmartLifecycle&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Config&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@ConfigurationProperties&lt;/code&gt;, &lt;code&gt;@Value&lt;/code&gt;, &lt;code&gt;@ConfigurationPropertiesScan&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Conditions&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@ConditionalOnClass&lt;/code&gt;, &lt;code&gt;@ConditionalOnMissingBean&lt;/code&gt;, &lt;code&gt;@ConditionalOnProperty&lt;/code&gt;, &lt;code&gt;@ConditionalOnWebApplication&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Web&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@RestController&lt;/code&gt;, &lt;code&gt;@GetMapping&lt;/code&gt;…, &lt;code&gt;@PathVariable&lt;/code&gt;, &lt;code&gt;@RequestParam&lt;/code&gt;, &lt;code&gt;@RequestBody&lt;/code&gt;, &lt;code&gt;@Valid&lt;/code&gt;, &lt;code&gt;@RestControllerAdvice&lt;/code&gt;, &lt;code&gt;@ExceptionHandler&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Data&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@Entity&lt;/code&gt;, &lt;code&gt;@Id&lt;/code&gt;, &lt;code&gt;@ManyToOne(fetch = LAZY)&lt;/code&gt;, &lt;code&gt;@Query&lt;/code&gt;, &lt;code&gt;@EntityGraph&lt;/code&gt;, &lt;code&gt;@Transactional&lt;/code&gt;, &lt;code&gt;@Version&lt;/code&gt;, &lt;code&gt;@Lock&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Cache&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@EnableCaching&lt;/code&gt;, &lt;code&gt;@Cacheable&lt;/code&gt;, &lt;code&gt;@CachePut&lt;/code&gt;, &lt;code&gt;@CacheEvict&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Events and async&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@EventListener&lt;/code&gt;, &lt;code&gt;@TransactionalEventListener&lt;/code&gt;, &lt;code&gt;@Async&lt;/code&gt;, &lt;code&gt;@Scheduled&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Security&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@EnableWebSecurity&lt;/code&gt;, &lt;code&gt;@EnableMethodSecurity&lt;/code&gt;, &lt;code&gt;@PreAuthorize&lt;/code&gt;, &lt;code&gt;@PostAuthorize&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Resilience&lt;/td&gt;&#10; &lt;td&gt;Spring 7: &lt;code&gt;@Retryable&lt;/code&gt;, &lt;code&gt;@ConcurrencyLimit&lt;/code&gt;; Resilience4j: &lt;code&gt;@CircuitBreaker&lt;/code&gt;, &lt;code&gt;@Retry&lt;/code&gt;, &lt;code&gt;@Bulkhead&lt;/code&gt;, &lt;code&gt;@RateLimiter&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Observability&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@Observed&lt;/code&gt;, &lt;code&gt;@Timed&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Testing&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;@SpringBootTest&lt;/code&gt;, &lt;code&gt;@WebMvcTest&lt;/code&gt;, &lt;code&gt;@DataJpaTest&lt;/code&gt;, &lt;code&gt;@MockitoBean&lt;/code&gt;, &lt;code&gt;@ServiceConnection&lt;/code&gt;, &lt;code&gt;@WithMockUser&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;h2 id="transactions"&gt;Transactions&lt;a class="heading-anchor" href="#transactions" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th&gt;Propagation&lt;/th&gt;&#10; &lt;th&gt;Behaviour&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;REQUIRED (default)&lt;/td&gt;&#10; &lt;td&gt;Join or create&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;REQUIRES_NEW&lt;/td&gt;&#10; &lt;td&gt;Suspend, create a new one (second connection)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;NESTED&lt;/td&gt;&#10; &lt;td&gt;Savepoint&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;SUPPORTS / NOT_SUPPORTED / NEVER / MANDATORY&lt;/td&gt;&#10; &lt;td&gt;Join-if-present / suspend / fail-if-present / fail-if-absent&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Rollback on &lt;code&gt;RuntimeException&lt;/code&gt; and &lt;code&gt;Error&lt;/code&gt; by default. Proxies apply only to public methods called from outside the bean. Default isolation: READ COMMITTED (PostgreSQL, Oracle, SQL Server), REPEATABLE READ (MySQL).&lt;/p&gt;</description></item><item><title>About this handbook</title><link>https://samirsahoo.github.io/design-patterns-hub/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/about/</guid><description>&lt;h2 id="purpose"&gt;Purpose&lt;a class="heading-anchor" href="#purpose" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;Java &amp;amp; Software Architecture Knowledge Hub&lt;/strong&gt; is an open, maintained handbook for two audiences:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Developers preparing for technical interviews or keeping their knowledge current.&lt;/li&gt;&#10;&lt;li&gt;Anyone looking for a precise, practical reference on Java, design patterns, architecture, Domain-Driven Design, microservices and system design.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;It favours depth over breadth: an article is published only when it is complete. Planned topics are listed on each section page as plain text, never as links to empty pages.&lt;/p&gt;</description></item><item><title>Glossary</title><link>https://samirsahoo.github.io/design-patterns-hub/glossary/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/glossary/</guid><description>&lt;p&gt;Definitions are deliberately short. Follow the links for the full explanation, examples and trade-offs.&lt;/p&gt;&#10;&lt;h3 id="a"&gt;A&lt;a class="heading-anchor" href="#a" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;ADR (Architecture Decision Record)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A short document recording one significant architecture decision: its context, the options, the decision and its consequences. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/software-architecture/introduction/#architecture-decision-records"&gt;Introduction to Software Architecture&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Adapter&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A structural GoF pattern that converts one interface into another that clients expect. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/adapter/"&gt;Adapter Pattern&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Aggregate / aggregate root&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;In DDD, a cluster of objects changed as one unit through a single entry point (the root), which enforces the cluster&amp;rsquo;s invariants. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/domain-driven-design/fundamentals/#aggregate-and-aggregate-root"&gt;DDD Fundamentals&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Anti-Corruption Layer (ACL)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A translation layer that protects a bounded context&amp;rsquo;s model from another context&amp;rsquo;s model. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/domain-driven-design/strategic/bounded-context/#the-anti-corruption-layer"&gt;What Is a Bounded Context?&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;At-least-once delivery&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A messaging guarantee that every message is delivered, possibly more than once. Consumers must be idempotent.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="b"&gt;B&lt;a class="heading-anchor" href="#b" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Bounded context&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;An explicit boundary within which a domain model and its language are consistent. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/domain-driven-design/strategic/bounded-context/"&gt;What Is a Bounded Context?&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Builder&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A creational GoF pattern that constructs a complex object step by step. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/design-patterns/creational/builder/"&gt;Builder Pattern&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="c"&gt;C&lt;a class="heading-anchor" href="#c" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Cache-aside&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A caching strategy in which the application reads from the cache, and on a miss loads from the database and populates the cache. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/diagram-patterns/#cache-cache-aside"&gt;Diagram Building Blocks&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Circuit breaker&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A reliability pattern that stops calling a failing dependency for a period, failing fast instead of waiting for timeouts.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Cohesion&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;How strongly the elements inside a module belong together. High cohesion is desirable.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Composition root&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;The single place where an application&amp;rsquo;s object graph is assembled. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/spring/core/dependency-injection/#the-composition-root"&gt;Dependency Injection in Java&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Context map&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A diagram and description of bounded contexts and the relationships between them. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/domain-driven-design/strategic/bounded-context/#context-mapping"&gt;What Is a Bounded Context?&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Coupling&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;The degree to which one module depends on another. Low coupling is desirable.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;CQRS (Command Query Responsibility Segregation)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;Using separate models for updating data (commands) and reading it (queries).&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="d"&gt;D&lt;a class="heading-anchor" href="#d" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Dependency injection (DI)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;Supplying an object&amp;rsquo;s dependencies from outside instead of having it create them. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/spring/core/dependency-injection/"&gt;Dependency Injection in Java&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Dependency Inversion Principle (DIP)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;High-level policy should not depend on low-level details; both should depend on abstractions. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/design-patterns/solid-principles/#d--dependency-inversion-principle"&gt;SOLID Principles&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Distributed monolith&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A system deployed as services that remain tightly coupled — sharing databases or deploying in lockstep. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/microservices/fundamentals/microservices-vs-modular-monolith/#common-mistakes"&gt;Microservices versus Modular Monolith&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Domain event&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A record of something that happened in the domain that domain experts care about, named in the past tense, such as &lt;code&gt;OrderPlaced&lt;/code&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="e"&gt;E&lt;a class="heading-anchor" href="#e" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Entity&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;In DDD, an object defined by a stable identity rather than by its attributes.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Event sourcing&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;Storing the sequence of state-changing events as the system of record, and deriving current state by replaying them.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Eventual consistency&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A guarantee that, if no new updates are made, all replicas or services will eventually agree on the same value.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="f"&gt;F&lt;a class="heading-anchor" href="#f" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Facade&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A structural GoF pattern that provides one simple interface to a complex subsystem. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/comparisons/adapter-decorator-proxy-facade/"&gt;the wrapper patterns comparison&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Factory Method&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A creational GoF pattern in which subclasses decide which class to instantiate. Not the same as a simple factory or a static factory method. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/design-patterns/creational/factory-method/"&gt;Factory Method Pattern&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="g"&gt;G&lt;a class="heading-anchor" href="#g" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;GoF (Gang of Four)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;Gamma, Helm, Johnson and Vlissides, authors of &lt;em&gt;Design Patterns&lt;/em&gt; (1994), which catalogued 23 patterns. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/design-patterns/gof-overview/"&gt;the overview&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="h"&gt;H&lt;a class="heading-anchor" href="#h" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Hexagonal Architecture (Ports and Adapters)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;An architecture style in which the business core defines ports and technology-specific adapters connect to them; dependencies point inwards. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/hexagonal-architecture/layered-vs-hexagonal/"&gt;Layered versus Hexagonal Architecture&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="i"&gt;I&lt;a class="heading-anchor" href="#i" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Idempotency&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;The property that performing an operation several times has the same effect as performing it once. Essential for safe retries. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/order-management-system/#failure-handling"&gt;the order management case study&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Invariant&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A business rule that must always hold, such as &amp;ldquo;an order has at least one line&amp;rdquo;. Aggregates enforce invariants.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Inversion of Control (IoC)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A principle in which a framework or caller, rather than your code, controls the flow or the choice of collaborators. DI is one form of IoC.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="m"&gt;M&lt;a class="heading-anchor" href="#m" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Modular monolith&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A single deployable application divided into business-aligned modules with enforced boundaries. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/microservices/fundamentals/microservices-vs-modular-monolith/"&gt;Microservices versus Modular Monolith&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="o"&gt;O&lt;a class="heading-anchor" href="#o" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Open/Closed Principle (OCP)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;Software entities should be open for extension but closed for modification. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/design-patterns/solid-principles/#o--openclosed-principle"&gt;SOLID Principles&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="p"&gt;P&lt;a class="heading-anchor" href="#p" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Port (inbound / outbound)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;In Hexagonal Architecture, an interface owned by the application core. Inbound ports are how the outside world drives the application; outbound ports are what the application needs from the outside world.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="q"&gt;Q&lt;a class="heading-anchor" href="#q" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Quality attribute&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A measurable property of a system, such as performance, availability or modifiability. Quality attributes drive architecture. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/software-architecture/introduction/#functional-requirements-and-quality-attributes"&gt;Introduction to Software Architecture&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="r"&gt;R&lt;a class="heading-anchor" href="#r" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Read replica&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A copy of a database that serves reads, updated by replication from the primary.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Repository (DDD)&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;An abstraction that gives the illusion of an in-memory collection of aggregates.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="s"&gt;S&lt;a class="heading-anchor" href="#s" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Saga&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A sequence of local transactions across services, with compensating actions to undo earlier steps if a later step fails. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/order-management-system/#data-flow"&gt;the order management case study&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Sharding&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;Splitting data across several databases by a key, to scale writes and storage.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;SOLID&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;Five object-oriented design principles: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation and Dependency Inversion. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/design-patterns/solid-principles/"&gt;SOLID Principles&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;dt&gt;&lt;strong&gt;Strategy&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;A behavioral GoF pattern that puts interchangeable algorithms behind one interface. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/design-patterns/behavioral/strategy/"&gt;Strategy Pattern&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="t"&gt;T&lt;a class="heading-anchor" href="#t" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Transactional outbox&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;Writing outgoing messages to an outbox table in the same transaction as the state change, then publishing them separately, so that state and messages never diverge. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/system-design/case-studies/order-management-system/#the-transactional-outbox"&gt;the order management case study&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="u"&gt;U&lt;a class="heading-anchor" href="#u" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Ubiquitous language&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;The shared vocabulary of developers and domain experts, used consistently in conversation and in code. See &lt;a href="https://samirsahoo.github.io/design-patterns-hub/domain-driven-design/fundamentals/#ubiquitous-language"&gt;DDD Fundamentals&lt;/a&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;&#10;&lt;h3 id="v"&gt;V&lt;a class="heading-anchor" href="#v" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;dl&gt;&#10;&lt;dt&gt;&lt;strong&gt;Value object&lt;/strong&gt;&lt;/dt&gt;&#10;&lt;dd&gt;In DDD, an immutable object defined only by its attributes, with no identity, such as &lt;code&gt;Money&lt;/code&gt;.&lt;/dd&gt;&#10;&lt;/dl&gt;</description></item></channel></rss>