Documente Academic
Documente Profesional
Documente Cultură
Performance
Distributed Caching
Tito Moreira
Solution Architect - Experts Team
Performance Hurdles
• Application code
○ Slow Queries / too many accesses to database
○ Slow Extensions
○ Large ViewState / Session
• Infrastructure
○ Database
○ Network
Caching helps, right?
Caching helps, right?
There are only two hard things in Computer Science:
cache invalidation and naming things.
-- Phil Karlton
Out-Of-the-Box Caching in OutSystems
• Queries
• Actions
• WebBlocks
• Screens
Out-Of-the-Box Caching in OutSystems
• Queries
• Actions
in-memory process
• WebBlocks (local server cache)
• Screens
Considerations when using local server caching
(haProxy or other)
Patterns to Populate a Distributed Cache
Updates cache on a
regular interval 1 DB
CacheSync_CS
Distributed Cache
CacheConnector
2 infrastructure
MyApp (UI) DataServices_CS
3 Writes should
Consumes data Encapsulates Entities,
related Actions providing Read or Write user Actions invalidate cache!
Patterns to Populate a Distributed Cache
• Memcached
• Redis
• Couchbase
• AWS Elastic Cache
• Azure Redis Cache
dmCache in Action!
(Demo)
We’ll be back in 5 min to answer
your questions
Thank you!