Enterprise Angular
Minimum price
Suggested price

Enterprise Angular

DDD, Nx Monorepos and Micro Frontends

About the Book

Important: Book moved!

This book moved to our website at ANGULARarchitects.io. Please also register here to get notified about news versions:

Download book or register to get notified after updates!


In the last years, I've helped numerous companies with implementing Angular based large scale enterprise applications. To handle the complexity of such applications, it's vital to decompose the whole system into smaller libraries. 

However, if you end up with lots of libraries which are too much intermingled with each other, you don't win much. If everything depends on everything else, you cannot easily change or extend your system without introducing breaking changes.

Domain-driven Design, esp. it's discipline strategic design helps with this and it also can be the foundation for building micro frontends.

In this book, which bases upon several blog articles I've written about Angular, DDD, and Micro Frontends, I show how to use these ideas. 

Workshops and Consultancy

If you are interested into on-site workshops or consultancy for your Angular projects, feel free to reach out to us. You find further information here.

About the Author

Manfred Steyer
Manfred Steyer

Trainer, consultant and programming architect with focus on Angular. Google Developer Expert (GDE) and Trusted Collaborator in the Angular team who writes for O'Reilly, the German Java Magazine, and windows.developer. Regularly speaks at conferences.

Provides Angular workshops and consultancy.

Table of Contents

  • Introduction
    • Help Improve this Book!
    • Trainings and Consultancy
    • Thanks
  • Strategic Domain-Driven Design
    • What is Domain-Driven Design?
    • Finding Domains with Strategic Design
    • Context-Mapping
    • Conclusion
  • Implementing Strategic Design with Nx Monorepos
    • Implementation with Nx
    • Categories for Libraries
    • Public APIs for Libraries
    • Check Accesses between libraries
    • Access Restrictions for a Solid Architecture
    • Conclusion
  • Tactical Domain-Driven Design with Angular and Nx
    • Code Organisation
    • Isolate the Domain
    • Implementations in a Monorepos
    • Builds within a Monorepo
    • Entities and your Tactical Design
    • Tactical DDD with Functional Programming
    • Tactical DDD with Aggregates
    • Facades
    • Stateless Facades
    • Domain Events
    • Your Architecture by the Push of a Button: The DDD-Plugin
    • Conclusion
  • Short Note: Incremental Builds to Speed up Your CI Process
  • From Domains to Microfrontends
    • Deployment Monoliths
    • Deployment monoliths, microfrontends, or a mix?
    • UI Composition with Hyperlinks
    • UI Composition with a Shell
    • Finding a Solution
    • Conclusion
  • The Microfrontend Revolution: Using Module Federation with Angular
    • Example
    • Getting started
    • Activating Module Federation for Angular Projects
    • The Shell (aka Host)
    • The Microfrontend (aka Remote)
    • Standalone-Mode for Microfrontend
    • Trying it out
    • Bonus: Loading the Remote Entry
    • Conclusion and Evaluation
  • Dynamic Module Federation with Angular
    • Module Federation Config
    • Routing to Dynamic Microfrontends
    • Improvement for Dynamic Module Federation
    • Bonus: Dynamic Routes for Dynamic Microfrontends
    • Conclusion
  • Plugin Systems with Module Federation: Building An Extensible Workflow Designer
    • Building the Plugins
    • Loading the Plugins into the Workflow Designer
    • Providing Metadata on the Plugins
    • Dynamically Creating the Plugin Component
    • Wiring Up Everything
    • Conclusion
  • Using Module Federation with Nx
    • Example
    • The Shared Lib
    • The Module Federation Configuration
    • Trying it out
    • Deploying
    • What Happens Behind the Covers?
    • Bonus: Versions in the Monorepo
    • Pitfalls (Important!)
  • Dealing with Version Mismatches in Module Federation
    • Example Used Here
    • Semantic Versioning by Default
    • Fallback Modules for Incompatible Versions
    • Differences With Dynamic Module Federation
    • Singletons
    • Accepting a Version Range
    • Conclusion
  • Micro Frontends with Web Components/ Angular Elements – An Alternative Approach
    • Step 0: Make sure you need it
    • Step 1: Implement Your SPAs
    • Step 2: Expose Shared Widgets
    • Step 3: Compile your SPAs
    • Step 4: Create a shell and load the bundles on demand
    • Step 5: Communication Between Microfrontends
    • Conclusion
  • Literature
  • About the Author
  • Trainings and Consulting

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Do Well. Do Good.

Authors have earned$10,909,613writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF, EPUB and/or MOBI files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub