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 18, 2024
Programming
0
31
Modern Angular with the NGRX Signal Store New Rules for Your Architecture @BASTA 2024 in Mainz
Manfred Steyer
PRO
September 18, 2024
Tweet
Share
More Decks by Manfred Steyer
See All by Manfred Steyer
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
8
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
89
Micro Frontends Unmasked: Opportunities, Challenges, Alternatives @w-jax 2024 München
manfredsteyer
PRO
0
74
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
86
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
50
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
240
Vertical Architectures for Scalable Angular Applications
manfredsteyer
PRO
0
350
Modern Angular with Lightweight Stores: New Rules and Options
manfredsteyer
PRO
0
280
Successful with Signals: 3 Rules for Your Architecture
manfredsteyer
PRO
0
160
Other Decks in Programming
See All in Programming
C#/.NETのこれまでのふりかえり
tomokusaba
1
180
From Subtype Polymorphism To Typeclass-based Ad hoc Polymorphism- An Example
philipschwarz
PRO
0
190
CPython 인터프리터 구조 파헤치기 - PyCon Korea 24
kennethanceyer
0
250
PLoP 2024: The evolution of the microservice architecture pattern language
cer
PRO
0
2.2k
ヤプリ新卒SREの オンボーディング
masaki12
0
100
AWS IaCの注目アップデート 2024年10月版
konokenj
3
3.2k
WEBエンジニア向けAI活用入門
sutetotanuki
0
320
Kubernetes for Data Engineers: Building Scalable, Reliable Data Pipelines
sucitw
1
210
色々なIaCツールを実際に触って比較してみる
iriikeita
0
310
C++でシェーダを書く
fadis
6
3.8k
gopls を改造したら開発生産性が高まった
satorunooshie
8
270
カスタムしながら理解するGraphQL Connection
yanagii
1
1.4k
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9k
Building an army of robots
kneath
302
42k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
42
2.2k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
4 Signs Your Business is Dying
shpigford
180
21k
Side Projects
sachag
452
42k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
46
2.1k
YesSQL, Process and Tooling at Scale
rocio
168
14k
We Have a Design System, Now What?
morganepeng
50
7.2k
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