3. REST
Application
Transport
Internet
Character
UUID id
Vector location
State state
UUID
Vector
x
y
z
State
ALIVE
DEAD
"characterRequest": {
"character": {
"id": "uuid",
"location": {
"x": 1234567890
"y": 1234567890
"z": 1234567890
}
"state": "ALIVE"
}
}
POST /index.html HTTP/1.1
Host: www.example.com
Content-Type
body{}
TCP
IP v4/v6
4. So what’s wrong with JSON over
HTTP
• Text not binary
• No multiplexing
• Needs something like swagger.
• GET, POST, DELETE, CREATE…. But what
else?
• Can see hacks appearing
8. Let’s look at some metrics
• Results of running against google compute
engine
• 3000ms vs 2700ms (post warm up)
• But wait.. We don’t have to play tennis