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
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.1k
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
RubyLSPのマルチバイト文字対応
notfounds
0
120
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
as(型アサーション)を書く前にできること
marokanatani
10
2.6k
Realtime API 入門
riofujimon
0
150
cmp.Or に感動した
otakakot
2
150
Outline View in SwiftUI
1024jp
1
330
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
210
Contemporary Test Cases
maaretp
0
140
EventSourcingの理想と現実
wenas
6
2.3k
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Designing Experiences People Love
moore
138
23k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Side Projects
sachag
452
42k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Designing for humans not robots
tammielis
250
25k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
A designer walks into a library…
pauljervisheath
204
24k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
How GitHub (no longer) Works
holman
310
140k
Statistics for Hackers
jakevdp
796
220k
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