torino js serverless javascript
TRANSCRIPT
Serverless JavaScriptServerless JavaScript
Antonello Pasella TorinoJS #jsNight: 2016-03-11
Antonello Pasella http://www.pasella.it Antonello Pasella http://www.pasella.it
“API first” vuole dire “HTTP first” che vuole dire “Ajax consumable”
JavaScript Everywhere
Serverless JavaScript #jsNightServerless JavaScript #jsNight
Antonello Pasella http://www.pasella.it Antonello Pasella http://www.pasella.it
Stripe Google API Social (FB, TW, etc) …
JavaScript Everywhere
Serverless JavaScript #jsNightServerless JavaScript #jsNight
Antonello Pasella http://www.pasella.it Antonello Pasella http://www.pasella.it
Servizi di terze parti consumabili direttamente dal browser dell’utente
JavaScript Everywhere
Buttiamo via i server
Serverless JavaScript #jsNightServerless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Respira profondamente…
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
molto profondamente…
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
un BROWSER
Risorse
connettività, JavaScript, storage privato
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Ne va bene uno qualsiasi.Basta che non abbia pantaloni a zampa
Risorse
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Risorse
HTML + CSS + JavaScript + Asset vari
HOSTING per file statici
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Risorse
Veloce e distribuito
free 3$/mese/100MB
…
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Risorse
Possiamo già realizzare applicazioni:● pubbliche● con dati privati● autocontenute
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Risorse
Database relazionale, noSQL, JSON storage, file privati, DBaaS
STORAGE per dati
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Risorse
● Accessibile via HTTP o WebSocket● ACL
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Risorse
Regole di business, task protetti, cron, etc.
Codice privato
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Risorse
API Gateway● accesso DB● gestione workflow
CronEvent driven
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Risorse
Autenticazione e autorizzazione
Auth*
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Risorse
Autenticazione ● Social● OAuth
Autorizzazione● ACL● JWT
hello.js
satellizr
custom code
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
JavaScript
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasella http://www.pasella.it
Serverless JavaScript #jsNight
Antonello Pasellawww.pasella.it
twitter.com/apasella
Thanks!
AngularJS Phonegap JavaScript Freelance