Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Modern Angular with the NGRX Signal Store New R...
Search
Manfred Steyer
PRO
September 17, 2024
Programming
0
140
Modern Angular with the NGRX Signal Store New Rules for Your Architecture @BASTA! 2024 in Mainz
Manfred Steyer
PRO
September 17, 2024
Tweet
Share
More Decks by Manfred Steyer
See All by Manfred Steyer
Micro Frontends Unmasked: Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
26
Modern Angular with the NGRX Signal Store New Rules for Your Architecture @BASTA 2024 in Mainz
manfredsteyer
PRO
0
12
Successful with Signals: 3 Patterns for Your Architecture
manfredsteyer
PRO
0
73
Native Federation: The Future of Micro Frontends in Angular
manfredsteyer
PRO
0
320
Architectures with Lightweight Stores: New Rules and Options
manfredsteyer
PRO
0
260
3 Effective Rules for Success with Signals in Angular
manfredsteyer
PRO
1
260
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
210
Where do we go from here? Strategies for Signals
manfredsteyer
PRO
0
200
Successful with Signals: 3 Effective Rules
manfredsteyer
PRO
0
120
Other Decks in Programming
See All in Programming
Our Websites Need a Lifestyle Change, Not a Diet
ryantownsend
0
150
いつか使える ObjectSpace / Maybe useful ObjectSpace
euglena1215
2
140
LangGraphでのHuman-in-the-Loopの実装
os1ma
3
1.1k
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
810
XStateでReactに秩序を与えたい
gizm000
0
730
Scala アプリケーションのビルドを改善してデプロイ時間を 1/4 にした話 | How I improved the build of my Scala application and reduced deployment time by 4x
nomadblacky
1
180
What you can do with Ruby on WebAssembly
kateinoigakukun
0
170
Go1.23で入った errorsパッケージの小さなアプデ
kuro_kurorrr
2
390
エンジニア1年目で複雑なコードの改善に取り組んだ話
mtnmr
3
2k
Modular Monolith Go Server with GraphQL Federation + gRPC
110y
1
580
Prompt Cachingは本当に効果的なのか検証してみた.pdf
ttnyt8701
0
530
Increased Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
360
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.9k
A Tale of Four Properties
chriscoyier
155
22k
Gamification - CAS2011
davidbonilla
79
5k
[RailsConf 2023] Rails as a piece of cake
palkan
48
4.6k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
24
610
Java REST API Framework Comparison - PWX 2021
mraible
PRO
27
7.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2k
The World Runs on Bad Software
bkeepers
PRO
64
11k
BBQ
matthewcrist
83
9.2k
It's Worth the Effort
3n
182
27k
Done Done
chrislema
180
16k
Designing with Data
zakiwarfel
98
5k
Transcript
AngularArchitects.io | @ManfredSteyer Modern Angular with the NGRX Signal Store
New Rules for Your Architecture
"Krapfen"
None
None
Small Change => Huge Impact
What if we changed for a lightweight store?
How do Lightweight Stores Change Architecture Rules?
Stores Streamline Reactive Flow Component Lightweight Store method() Observables, Signals,
etc. sync/ async
Two Reasons for a Store Manage State Streamline Dataflow
None
None
None
Stores Streamline Reactive Flow Component Lightweight Store method() Observables, Signals,
etc. sync/ async Currently: Main Use Case for Signas
Some Lightweight Stores … Akita Elf Pinia NGRX Signal Store
Agenda 1) Baseline Architecture 2) How Large Should a Store
be? 3) Where To Put The Store? 4) Global and/or Local State? 5) Preventing Cycles, Redundancies, and Inconsistencies
About me… Manfred Steyer, ANGULARarchitects.io (Remote) Angular Workshops and Consulting
Google Developer Expert for Angular Blog, Books, Articles, and Talks about Angular Manfred Steyer
Baseline Architecture
Stack NGRX Signal Store Angular Nx Monorepo
Booking Boarding Shared Feature Feature Feature Feature Feature UI UI
UI UI UI UI UI UI UI Data Data Data Data Data Data Util Util Util Util Util Util Enterprise Monorepo Patterns, Nrwl 2018: https://tinyurl.com/y2jjxld7 @ManfredSteyer Smart Comp. Dumb Comp.
Nx Libs: Modularization Incremental CI/CD Build Cache Parallelization in Builds
Sheriff: Module Boundaries on a per-folder basis @softarc/eslint-plugin-sheriff Works with
and without Nx
Nx & Sheriff Folders: Modularization Incremental CI/CD Build Cache Parallelization
in Builds Sheriff
Demo
How Granular Should it be?
Feature Sub- Feature
Where to put the Store?
Booking Boarding Shared Feature Feature Feature Feature Feature UI UI
UI UI UI UI UI UI UI Domain Domain Domain Domain Domain Domain Util Util Util Util Util Util Enterprise Monorepo Patterns, Nrwl 2018: https://tinyurl.com/y2jjxld7 @ManfredSteyer Feature
Feature UI Data Util Redux Feature Slice
Feature UI Data Util Lightweight Stores Cmp Cmp Lightweight Stores
can live everywhere! Component vs. Module Exposed vs. Hidden
Demo
Global vs. Local State?
Global vs. Local FeatureStore DomainStore FeatureService UtilityStore
Demo
Cycles, Redundancies, and Inconsistencies
Let's think it through … • Layering • Prevent Stores
accessing each other • Redux DevTools
Demo
Free eBook (6th Edition) angularArchitects.io/ebook
Conclusion Lightweight Stores … … size of a (sub-)feature …
can live everywhere … orchestrated by a feature service … leverage layering to prevent cycles … Use DevTools!
Conclusion NGRX … … de facto standard for State Management
in Angular … Signal Store: lightweight and highly extensible
Conclusion Architecture … … vertically sliced by domains … horizontally
by layers … enforced by Sheriff … fast builds with Nx … visualized with Detective
"Krapfen"
ManfredSteyer AngularArchitects.io Slides & Examples Remote Company Workshops and Consulting
http://angulararchitects.io