~/talk

Beyond REST API’s – An overview about modern API technologies

Talkat Spring I/O 2022 · 2022-05-26..05-27· [api-design, web-platform]
slides:none on file

Overview of GraphQL gRPC and RSocket with concrete Spring tooling and a working demo of a task management app plus a project chat. GraphQL uses a single endpoint and a schema (uses the Spring GraphQL library) to let clients fetch exactly requested fields and subscribe over websockets, reducing round trips but requiring pagination and custom error handling. gRPC runs on HTTP/2 with a Netty server and protobuf for smaller payloads, good for backend-to-backend streaming and integrates with Spring Cloud Gateway. RSocket uses TCP or websocket, offers backpressure and bidirectional streams via RSocket requester/responder and works in browsers for live updates. Links and code live in the YATT GitHub repo.

AI-written summary · about

  1. 0:00Intro
  2. 4:29The REST API endpoints for the task resource might look like this
  3. 10:38making the server an executor of an arbitrary number of different queries ...
  4. 13:27Subscriptions allow to constantly send updates to a client based on their query...
  5. 15:43There are many scenarios conceivable to add a GraphQL API to your existing application ...
  6. 18:33JSON payloads are not the most efficient way to package the stuff for transportation ...
  7. 19:27Consuming a REST API requires either some manual work or a set of tools to get going ...
  8. 22:37The server implementation inherits from the generated services base class...
  9. 23:52or an asynchronous one, which is useful for unbound server-streaming, for example.
  10. 27:52Summary / Takeaways GRPC
  11. 31:16Once a connection is established, both ends can become requester and responder
  12. 34:27Spring supports annotated handlers to implement responders (Spring Messaging)
  13. 40:31A few guiding questions that could make you think about any of the presented alternatives
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.