Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Elastic APIs: Are microservices the answer? by ...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
API Strategy & Practice Conference
November 20, 2015
Technology
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Elastic APIs: Are microservices the answer? by Orlando Kalossakas
API Strategy & Practice Conference
November 20, 2015
More Decks by API Strategy & Practice Conference
See All by API Strategy & Practice Conference
APIStrat 2016 | The end of polling: why and how to transform a REST API into a Data Streaming API (Audrey Neveu)
apistrat
12
350
APIStrat 2016 | OpenAPI Trek: Beyond API Documentation (Arnaud Lauret)
apistrat
5
250
APIStrat 2016 | Flying Dreams: Real-Time Communication from the Edge of Space (Jonathan Barton, Neha Abrol)
apistrat
1
190
APIStrat 2016 | On-prem support? That was so 1982 (Charlie Ozinga)
apistrat
0
160
APIStrat 2016 | Effortless microservices in production with Kubernetes (Ken Wronkiewicz)
apistrat
0
190
Song by Tony Blank
apistrat
0
220
API Lifecycle Manager by Steve Fonseca
apistrat
2
280
APIs In The Enterprise: How Walgreens Formed It's Digital Business by Drew Schweinfurth
apistrat
1
430
Developers Are Difficult by Andrew Noonan
apistrat
0
160
Other Decks in Technology
See All in Technology
[Kiro Meetup #7] Kiro Crew Dive Deep
konippi
0
260
AIエージェントの自己改善をどう設計するか / How to Design Self-Improvement for AI Agents
22mi
26
17k
Oracle Cloud Network Path Analyzerを試してみた/I Tried Out Oracle Cloud Network Path Analyzer
masakiokuda
1
110
Issue 駆動でスペシャリストの意図を届ける、AI 実装のアクセシビリティ向上
thkt
0
140
C#未経験の僕がAIに読めるコードを書かせるまで
maguroalternative
0
250
【ゲームメーカーズスクランブル2026】『Shadowverse: Worlds Beyond』UIとアニメーションで実現する最高のユーザー体験を叶えるプロトタイピング
cygames
PRO
0
150
ADKで始める業務改善 - AIエージェント開発時の考えと設計
harappa80
2
270
SREの視点で考えるSIEM活用術 〜AWS環境でのセキュリティ強化〜
cscengineer
PRO
0
280
アクセスキーこわい やめかたと漏らさない工夫
sassssan68
1
660
AIに任せた品質は、誰が見立てるのか - AI時代のテストマネジメント
nakanao
3
2.9k
時うどん〜Socket.getifaddrsで学ぶネットワーク編 / Tokiudon: The Socket.getifaddrs Edition
coe401_
4
230
Making AI Agents Safe and Fast- Jev, Obsidian, and the Meta-Harness
x5gtrn
PRO
0
120
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
540
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Building an army of robots
kneath
307
46k
Between Models and Reality
mayunak
4
460
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
HDC tutorial
michielstock
2
880
Building Applications with DynamoDB
mza
96
7.2k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Visualization
eitanlees
152
17k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
3
4.3k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Transcript
Elastic APIs Are microservices the answer?
[email protected]
@orliesaurus
My name is.. • Im here to help you build
stuff
Microservices Everyone is talking about this topic, everyone is trying
to take a bite. P.S. They have their own instagram.com/microservices account
The inspiration • Driven From Blueprints • Isolated Resources •
Run Anywhere LOL
Containers are A THING • Have been around since `chroot`
• Became a global trend shortly after the release of Docker the 2013-03-23
Docker interest over time
–Every engineer in a social situation “Oh yeah.. we’re using
containers…”
Independence === pizza:
Qualities of microservices • Deal with problems inside their scope
• Data sharing per service • Available • Versioning • Auto-deployable
//Assume you have an .env file var express = require('express');
var http = require('http'); var mongo = require('mongodb').MongoClient; var app = express(); app.set('port', process.env.PORT || 8080); var mongodb; if(process.env.MONGO_URL) { mongo.connect(process.env.MONGO_URL, null, function(err, mongodb_) { if(err) { console.log(err); } else { mongodb = mongodb_; } }); } app.get('/users', function(req, res, next) { var collection = db.collection('users'); collection.find().toArray(function(err, result) { if(err) { res.sendStatus(500); return; } res.json(result); }); }); app.listen(app.get('port')); Retrieve all users
INTRODUCING: THE GATEWAY…
• Authentication
• Security (transport layer)
• Load Balancing
• Request Dispatching
Example: You wanna buy some
None
⚠ ALL THAT! BAY LIFE
λ
λ!
• Own code + Libraries • Native SDK • Timeouts
and Memory • Use external storage, there’s no root access! • Debug via cloudwatch
• Invoke through Gateway, or other services
λ G A T E W A Y /route λ
λ λ λ GET PUT POST DELETE PATCH
https://github.com/awslabs/aws-apigateway- importer
console.log('Loading function'); exports.handler = function(event, context) { //YOUR CODE GOES
HERE context.succeed(“Hurray”); context.fail(‘oh no :( :(‘); };
swagger: '2.0' info: version: '1.0.0' title: Swagger Petstore description: A
sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification termsOfService: http://helloreverb.com/terms/ contact: name: Swagger API team email:
[email protected]
– Startup guy “2easy4me” ./aws-api-import.sh --create path/to/swagger.json
–Johnny Appleseed “Type a quote here.”
None
None
– (Maybe) A guy employed by Amazon who worked on
Lambda It’s Superfast, like Rambo driving a Lambo TEST IT: squirrelbin.com
TRY, FAIL, LEARN, DISCUSS
[email protected]
@orliesaurus