7. Reference Implementation

Thus far, we’ve spent the majority of Part I making the case for modularity. Before we delve too deeply into the patterns, let’s witness firsthand the benefits of a modular architecture. Here, we’ll provide a glimpse into how we can apply several of the patterns to create a software system with a highly modular architecture. We’ll start by examining a sample system and exploring its initial architecture, including some code. Through a series of refactorings, we’ll apply several techniques that increase the architectural resiliency of the system. Through these series of relatively small changes, we’ll see the system undergo an astonishing transformation from a huge monolith to one of several collaborating modules. Plan ...

Get Java Application Architecture: Modularity Patterns with Examples Using OSGi now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.