Mesos has continued to add support for a new, easy to use framework API: the HTTP API.
In this talk we first provide an overview of the different parts of the HTTP API including scheduler, executor, and operator API.
Next we provide insight in how the new API can be used by framework writers with best practices and common pitfalls experienced while implementing HTTP API support for ArangoDB which is among the first production frameworks to utilize this new feature.
From this experience we present guidelines on how to change a framework over from the old API to the new HTTP API and compare both implementations side to side to show the differences (or different usage patterns) of both APIs. This talk is equally useful for framework authors who directly want to start from scratch with the new HTTP API.
Video recording: https://www.youtube.com/watch?v=o6RQlT35mmo&index=3&list=PLbzoR-pLrL6pLSHrXSg7IYgzSlkOh132K
11. FRAMEWORK PROTOCOL
• Every call is a HTTP POST request
• Content-Type: application/json or application/x-protobuf
• Successful SUBSCRIBE call results in a “200 OK” streaming response
• Record-IO formatted events
• Persistent connection
• All successful non-SUBSCRIBE calls result in “202 Accepted”
•
23. Versioning
• Corresponding major versions
• API compatibility
• Protobuf like
http://localhost:5050/api/v1/scheduler
http://localhost:5051/api/v2/executor
24. API STATUS
• Scheduler API & Executor API : Stable
• Operator API : Experimental
• Client library implementations