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
Transcript
32 slides
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
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
360
APIStrat 2016 | OpenAPI Trek: Beyond API Documentation (Arnaud Lauret)
apistrat
5
260
APIStrat 2016 | Flying Dreams: Real-Time Communication from the Edge of Space (Jonathan Barton, Neha Abrol)
apistrat
1
200
APIStrat 2016 | On-prem support? That was so 1982 (Charlie Ozinga)
apistrat
0
170
APIStrat 2016 | Effortless microservices in production with Kubernetes (Ken Wronkiewicz)
apistrat
0
200
Song by Tony Blank
apistrat
0
230
API Lifecycle Manager by Steve Fonseca
apistrat
2
290
APIs In The Enterprise: How Walgreens Formed It's Digital Business by Drew Schweinfurth
apistrat
1
440
Developers Are Difficult by Andrew Noonan
apistrat
0
170
Other Decks in Technology
See All in Technology
SREのためのFinOps入門
muziyoshiz
3
1.6k
【Oracle AI SPOTLIGHT ウェビナー】【特別開催:日本語で解説!】Oracle AI World 2026 最新情報フィードバック
oracle4engineer
PRO
1
260
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
2
260
異夢同船〜異なる夢でも同じ船でなんとかする〜
fortegp05
1
450
ぼくのClaude Codeの使い方
falken
PRO
5
7.4k
AI時代における医療情報システムのセキュリティ / Security of Healthcare IT Systems in the AI Era
henryofficial
0
180
Agent Harnessはどう作る?事例から学ぶAI Agentの設計思想
sergicalsix
0
330
「任されビリティ」で引き受けて「よしなりてぃ」に頼らず任せる / Accept tasks with "makasarebility" and hand them over without relying on "yoshinarily"
pauli
1
720
AWS Emulator を評価する: 手元で動く AWS の API の仕組み、始め方、確かめ方
inariku
PRO
1
730
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
370
高品質と高スピードを支える品質のシフトレフトのアプローチ
goyoki
4
1.5k
専門家に使ってもらうAIプロダクトをつくる - 病院の医事課向けDPCコーディング支援システムの設計と評価
hagino3000
2
140
Featured
See All Featured
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
WCS-LA-2024
lcolladotor
0
1k
Google's AI Overviews - The New Search
badams
0
1.7k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
310
Making the Leap to Tech Lead
cromwellryan
135
10k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
490
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Thoughts on Productivity
jonyablonski
76
5.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Six Lessons from altMBA
skipperchong
29
4.6k