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
Distributed Caching for Your next Node.js Project
Search
Viktor Gamov
June 15, 2017
Programming
2
210
Distributed Caching for Your next Node.js Project
https://cfsummit2017.sched.com/mobile/#session:6e79e60f777bd1731bd3c9e16abfc905
Viktor Gamov
June 15, 2017
Tweet
Share
More Decks by Viktor Gamov
See All by Viktor Gamov
Processing Streaming Data with KSQL
vikgamov
4
330
[VirtualJUG] Apache Kafka — A Streaming Data Platform
vikgamov
3
330
[SF JUG] Apache Kafka — A Streaming Data Platform
vikgamov
4
72
[OracleCode NYC-2018] Apache Kafka A Streaming Data Platform
vikgamov
1
150
[OracleCode NYC-2018] Rethinking Stream Processing with KStreams and KSQL
vikgamov
2
210
[JBreak-2018] Это кто там твитить про #jbreak?
vikgamov
0
170
[DevNexus-2018] Apache Kafka A Streaming Data Platform
vikgamov
2
240
[DataSciCon] Divide, Distribute and Conquer: Stream v. Batch
vikgamov
0
94
[Philly JUG] Divide, Distribute and Conquer: Stream v. Batch
vikgamov
0
440
Other Decks in Programming
See All in Programming
PagerDuty を軸にした On-Call 構築と運用課題の解決 / PagerDuty Japan Community Meetup 4
horimislime
1
110
Kotlin2でdataクラスの copyメソッドを禁止する/Data class copy function to have the same visibility as constructor
eichisanden
1
140
役立つログに取り組もう
irof
26
8.7k
僕がつくった48個のWebサービス達
yusukebe
18
17k
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
0
160
WEBエンジニア向けAI活用入門
sutetotanuki
0
300
2万ページのSSG運用における工夫と注意点 / Vue Fes Japan 2024
chinen
3
1.3k
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
350
のびしろを広げる巻き込まれ力:偶然を活かすキャリアの作り方/oso2024
takahashiikki
1
410
From Subtype Polymorphism To Typeclass-based Ad hoc Polymorphism- An Example
philipschwarz
PRO
0
170
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
550
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
23k
Featured
See All Featured
Statistics for Hackers
jakevdp
796
220k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
7
150
How to train your dragon (web standard)
notwaldorf
88
5.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
264
13k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.2k
Docker and Python
trallard
40
3.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
328
21k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Testing 201, or: Great Expectations
jmmastey
38
7k
Into the Great Unknown - MozCon
thekraken
31
1.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
41
2.1k
Transcript
@gamussa @hazelcast #cloudfoundry #cfsummit17 Distributed Caching for Your next Node.js
Project @gamussa @hazelcast #cloudfoundry #cfsummit17
@gamussa @hazelcast #cloudfoundry #cfsummit17 > whoami
@gamussa @hazelcast #cloudfoundry #cfsummit17 Señor Solutions Architect > whoami
@gamussa @hazelcast #cloudfoundry #cfsummit17 Señor Solutions Architect Developer Advocate >
whoami
@gamussa @hazelcast #cloudfoundry #cfsummit17 Señor Solutions Architect Developer Advocate @gamussa
in internetz > whoami
@gamussa @hazelcast #cloudfoundry #cfsummit17 Señor Solutions Architect Developer Advocate @gamussa
in internetz Please, follow me on Twitter > whoami
@gamussa @hazelcast #cloudfoundry #cfsummit17 Señor Solutions Architect Developer Advocate @gamussa
in internetz Please, follow me on Twitter I’m very interesting © > whoami
@gamussa @hazelcast #cloudfoundry #cfsummit17 Why cache?
@gamussa @hazelcast #cloudfoundry #cfsummit17
@gamussa @hazelcast #cloudfoundry #cfsummit17
@gamussa @hazelcast #cloudfoundry #cfsummit17
@gamussa @hazelcast #cloudfoundry #cfsummit17 Applications are like onions Applications have
layers
@gamussa @hazelcast #cloudfoundry #cfsummit17 Business Application (instance 1) Service Service
Service RDBMS Mainframe MongoDB NoSQL REST
@gamussa @hazelcast #cloudfoundry #cfsummit17 Business Application (instance 2) Business Application
(instance 1) Service Service Service RDBMS Mainframe MongoDB NoSQL REST
@gamussa @hazelcast #cloudfoundry #cfsummit17
@gamussa @hazelcast #cloudfoundry #cfsummit17 Business Application (instance 2) Business Application
(instance 1) Service Service Service RDBMS Mainframe NoSQL REST CACHE
@gamussa @hazelcast #cloudfoundry #cfsummit17 Business Application (instance 2) Business Application
(instance 1) Service Service Service RDBMS Mainframe NoSQL REST CACHE Scale out
@gamussa @hazelcast #cloudfoundry #cfsummit17 Business Application (instance 2) Business Application
(instance 1) Service Service Service RDBMS Mainframe NoSQL REST CACHE Scale out Read thought Write through
@gamussa @hazelcast #cloudfoundry #cfsummit17 CACHES CACHES EVERYWHERE!
@gamussa @hazelcast #cloudfoundry #cfsummit17 Cache is good for…
@gamussa @hazelcast #cloudfoundry #cfsummit17 Cache is good for… ◇Improving performance
@gamussa @hazelcast #cloudfoundry #cfsummit17 Cache is good for… ◇Improving performance
◇Offload expensive parts of the architecture
@gamussa @hazelcast #cloudfoundry #cfsummit17 Cache is good for… ◇Improving performance
◇Offload expensive parts of the architecture ◇Scale up your – get the most out of one machine
@gamussa @hazelcast #cloudfoundry #cfsummit17
@gamussa @hazelcast #cloudfoundry #cfsummit17 Cache is good for… ◇Performance ◇Offload
expensive parts of the architecture ◇Scale up – get the most out of one machine ◇Scale out – add more capacity with more machines
@gamussa @hazelcast #cloudfoundry #cfsummit17
@gamussa @hazelcast #cloudfoundry #cfsummit17 Caching use cases: ◇Performance ◇Offload expensive
parts of the architecture ◇Scale up – get the most out of one machine ◇Scale out – add more capacity with more machines ◇Usually very fast and easy to apply
@gamussa @hazelcast #cloudfoundry #cfsummit17 Problem ◇Data doesn’t fit just one
machine ONE DOES NOT SIMPLY FIT ALL DATA IN ONE MACHINE
@gamussa @hazelcast #cloudfoundry #cfsummit17 ◇Amount of data is too
big to fit
@gamussa @hazelcast #cloudfoundry #cfsummit17 ◇Data is too important to have
it only one machine
@gamussa @hazelcast #cloudfoundry #cfsummit17 What’s
@gamussa @hazelcast #cloudfoundry #cfsummit17
@gamussa @hazelcast #cloudfoundry #cfsummit17 REPLICATION
@gamussa @hazelcast #cloudfoundry #cfsummit17 REPLICATION SHARDING
@gamussa @hazelcast #cloudfoundry #cfsummit17 Replication or Sharding? http://book.mixu.net/distsys/single-page.html
@gamussa @hazelcast #cloudfoundry #cfsummit17 What’s Hazelcast IMDG?
@gamussa @hazelcast #cloudfoundry #cfsummit17 What’s Hazelcast IMDG? ◇In-memory Data Grid
@gamussa @hazelcast #cloudfoundry #cfsummit17 What’s Hazelcast IMDG? ◇In-memory Data Grid
◇Apache v2 Licensed
@gamussa @hazelcast #cloudfoundry #cfsummit17 What’s Hazelcast IMDG? ◇In-memory Data Grid
◇Apache v2 Licensed ◇Distributed ■Caches (IMap, JCache) ■Collections (IList, ISet, IQueue) ■Messaging (Topic, RingBuffer) ■Computation (ExecutorService, M-R)
@gamussa @hazelcast #cloudfoundry #cfsummit17 https://network.pivotal.io/products/hazelcast
@gamussa @hazelcast #cloudfoundry #cfsummit17 Tile Capabilities ◇dedicated VM for service
◇Support for multiple availability zones ◇Bosh ensures the availability of all VMs ◇Only Tile, no separate Bosh release for ODB
@gamussa @hazelcast #cloudfoundry #cfsummit17 Polyglot Platform
@gamussa @hazelcast #cloudfoundry #cfsummit17 Demo time! Let’s see some code,
yay!
@gamussa @hazelcast #cloudfoundry #cfsummit17 Useful materials ◇ Features https://hazelcast.org/clients/node-js/ ◇Refcard
http://bit.ly/hzNodeRefcard ◇NPM package https://www.npmjs.com/package/hazelcast-client
@gamussa @hazelcast #cloudfoundry #cfsummit17 https:/ /github.com/hazelcast/ cfsummit17-wednesday
@gamussa @hazelcast #cloudfoundry #cfsummit17 Thanks! Any questions? You can find
me at: ◇@gamussa ◇
[email protected]
◇http://gamov.io