Date post: | 16-Jul-2015 |
Category: |
Technology |
Upload: | quentin-adam |
View: | 1,121 times |
Download: | 0 times |
Quentin ADAM from the Clever Cloud
@waxzce on twitter – github- soundcloud – instagram ….
WHO AM I ?
MY DAY TO DAY WORK :
CLEVER CLOUD, MAKE YOUR
APP RUN ALL THE TIME
And learn a lot of things about your code, apps, and good/bad design…
KEEP YOUR APPS ONLINE. MADE WITH
NODE.JS, SCALA, JAVA, RUBY, PHP,
PYTHON, GO OR DOCKER…
WHAT IS INSIDE AN
HTTP REQUEST ?
Verb
• The action
Resource
• The object of the action
Headers
• The context of the action
Body
• Optional
• The datas
DO NOT USE THE FILE
SYSTEM AS A DATASTORE
File systems are POSIX compliant
• POSIX is ACID
• POSIX is powerful but is a bottleneck
• File System is the nightmare of ops
• File System creates coupling (host provider/OS/language)
• SPOF-free multi tenant File System is a unicorn
Client uploads
file
Create a temp file
Send a file in a
backend
Then answer to the client
The file is
transferring two
times
CLASSIC JAVA STREAM
MANAGEMENT
• Low performances if not buffered
• Not modular
• Thread blocking
• Code is ugly
• No back pressure
• Error handling is bad
• i/o management and business code are mixed
WHAT’S OUR GOAL
• Get Reactive Manifesto words
• Stream it to an iteratee to group it by pair of word
• Print it
MORE POSSIBILITIES
Grab from rabbitMQ
Parse EventCheck event
ACL from DB
Find reliable WS
Send data to WS
GO NOW
Iteratee
Scalaz-streams
Akka-stream
• learn
• Act now on play!
• Beautiful design
• The most scala-ishway to do
• Enterprise compatible
• Wide ecosystem
• Reactive stream ready
I’m @waxzce on twitter
I’m the CEO of
A PaaS provider, give it a try
;-)
THX FOR LISTENING
& QUESTIONS TIME
Coupon for Clever Cloud trial :
lambdacon