4. Once upon a time
$> curl
--request POST
--url https://api.scaleway.com/rdb/v1/region/nl-ams/databases
--header X-Auth-Token: XXXX
--header Content-Type: application/json
--data {
"name": "my-super-db",
"description": “my super important data”
}
5. Once upon a time
DNS
api.scaleway.com
212.47.225.71
6. Once upon a time
An IP to go where ?
☁
212.47.225.71
7. Once upon a time
The basic solution
⚙
Service 01
⚖
API Gateway
⚙
Service 02
212.47.225.71
8. Once upon a time
Load-balace LBs
$
212.47.225.71
⚖
API Gateway 01
⚖
API Gateway 02
⚙
Service 01
⚙
Service 02
9. Once upon a time
With Anycast
212.47.225.71
⚖
APIGW 01
⚖
APIGW 02
⚙
Service 01
⚙
Service 02
10. Once upon a time
Regions: no problem 212.47.225.71
% &
⚖
APIGW 01
⚖
APIGW 02
⚙
Service 01
⚙
Service 02
⚖
APIGW 01
⚖
APIGW 02
⚙
Service 01
⚙
Service 02
11. Once upon a time
The nearest 212.47.225.71
%
⚖
APIGW 01
⚖
APIGW 02
⚙
Service 01
⚙
Service 02
21. Here come gRPC
Before
POST /rdb/v1/region/nl-ams/databases HTTP/1.1
Content-Type: application/json
X-Auth-Token: xxxxxx
{“name":"my-super-db","description":"my super important data”}
After
:method: POST
:path: /scaleway.rdb.v1.Api/CreateDatabase
content-type: application/grpc
x-auth-token: xxxxxx
x-region: nl-ams
0x78 0x67 0x68 0x5A 0x9A . . .
30. All roads lead to an API
Where do I go ?
80+ services in 2 regions
🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳
🌳・・・・🌳・・・・・・・・・・🌳
🌳🌳🌳🌳・🌳・🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳
🌳・・🌳・🌳・・・・・・🌳・・・➡
🌳🌳・🌳・🌳🌳🌳🌳🌳🌳・🌳・🌳🌳🌳
🌳・・🌳・・・・・・・・🌳・・・🌳
🌳・🌳🌳・🌳・🌳🌳🌳🌳🌳🌳・🌳・🌳
🌳・・・・🌳・・・・・・🌳・🌳・🌳
🌳・🌳・🌳🌳🌳🌳🌳🌳🌳・🌳🌳🌳・🌳
🌳・🌳・・・・・🌳・・・🌳・・・🌳
🌳・🌳🌳🌳🌳🌳・🌳・🌳・🌳🌳🌳・🌳
🌳・🌳・・・・・🌳・🌳・・・🌳・🌳
🌳🌳🌳・🌳🌳🌳🌳🌳・🌳🌳🌳・🌳・🌳
➡・🌳・・・・・・・🌳・・・・・🌳
🌳・🌳・🌳・🌳🌳🌳🌳🌳・🌳🌳🌳🌳🌳
🌳・・・🌳・・・・・・・・・・・🌳
🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳🌳
31. All roads lead to an API
Service routing
:path: /scaleway.rdb.v1.Api/CreateDatabase
content-type: application/grpc
x-auth-token: xxxxxx
x-region: nl-ams
0x78 0x67 0x68 0x5A 0x9A . . .
⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙
⚙⚙⚙⚙⚙⚙⚙⚙5⚙⚙⚙⚙⚙⚙
⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙⚙
39. Some number
12 000+
req since the talk started
80+
services
2500+
metrics
110
MB of RAM in total
40. MERCI
Suivez notre actualité, tutoriels inédits et infos cloud sur
Twitter et LinkedIn @Scaleway
Et suivez-moi sur Twitter et LinkedIn @jeromequere