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
Architectures with Lightweight Stores: New Rule...
Search
Manfred Steyer
PRO
July 18, 2024
Programming
0
240
Architectures with Lightweight Stores: New Rules and Options
Manfred Steyer
PRO
July 18, 2024
Tweet
Share
More Decks by Manfred Steyer
See All by Manfred Steyer
Successful with Signals: 3 Patterns for Your Architecture
manfredsteyer
PRO
0
65
Native Federation: The Future of Micro Frontends in Angular
manfredsteyer
PRO
0
310
3 Effective Rules for Success with Signals in Angular
manfredsteyer
PRO
1
250
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
200
Where do we go from here? Strategies for Signals
manfredsteyer
PRO
0
200
Successful with Signals: 3 Effective Rules
manfredsteyer
PRO
0
110
Vertical Architectures for Scalable Angular Applications
manfredsteyer
PRO
0
350
Successful with Signals: 3 Effective Rules
manfredsteyer
PRO
0
120
Modern Angular Architectures With Nx and Lightweight Stores @ngBelgrade 2024
manfredsteyer
PRO
0
240
Other Decks in Programming
See All in Programming
Method Swizzlingを行うライブラリにおけるマルチモジュール設計
yoshikma
0
110
Amebaチョイス立ち上げの裏側 ~依存システムとの闘い~
daichi_igarashi
0
230
rbs-inlineを導入してYARDからRBSに移行する
euglena1215
1
260
Go1.23で入った errorsパッケージの小さなアプデ
kuro_kurorrr
2
330
GraphQLの魅力を引き出すAndroidクライアント実装
morux2
3
310
Hono・Prisma・AWSでGeoなAPI開発
nokonoko1203
5
670
Using Livebook to build and deploy internal tools @ ElixirConf 2024
hugobarauna
0
240
New Order in Cascade Sorting Order
mugi_uno
3
2.6k
Mastering AsyncSequence - 使う・作る・他のデザインパターン(クロージャ、Delegate など)から移行する
treastrain
4
1.6k
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
280
Prolog入門
qnighy
4
990
Swiftコードバトル必勝法
toshi0383
0
150
Featured
See All Featured
How to Ace a Technical Interview
jacobian
275
23k
YesSQL, Process and Tooling at Scale
rocio
167
14k
Making the Leap to Tech Lead
cromwellryan
128
8.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
322
23k
What the flash - Photography Introduction
edds
67
11k
Building an army of robots
kneath
302
42k
Designing the Hi-DPI Web
ddemaree
278
34k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
109
6.9k
Debugging Ruby Performance
tmm1
72
12k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
157
15k
Gamification - CAS2011
davidbonilla
79
4.9k
Pencils Down: Stop Designing & Start Developing
hursman
119
11k
Transcript
AngularArchitects.io | @ManfredSteyer Architectures with Lightweight Stores: New Rules and
Options WeAreDevelopers World Congress
"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
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
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.
Sheriff: Boundaries on a per-folder basis Rainer Hahnekamp, AngularArchitects @softarc/eslint-plugin-sheriff
Demo
How Large 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
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
Free eBook (6th Edition) angularArchitects.io/ebook
Conclusion Lightweight Stores … … have the size of a
(sub-)feature … can live everywhere … can be orchestrated by a feature service … can leverage layering to prevent cycles … should use DevTools
"Krapfen"
ManfredSteyer AngularArchitects.io Slides & Examples