HACKER Q&A
📣 WolfOliver

Do you still write REST APIs?


Do you still write REST APIs?


  👤 gregjor Accepted Answer ✓
Yes. And I use a lot of them that other providers still write. What do you mean by “still?” Did someone write an article about how REST sucks or is broken?

👤 GianFabien
Yes, but only for CRUD type access. For WebApps that have most of the business-logic on the server side, I have been using WebSockets -- pub/sub (MQTT) as well as RPC semantics.

It really depends on your use-case. I used to have most of the business logic in the web client, but over time I have come to see that you can implement greater integrity by not exposing CRUD-like operations over HTTPS.


👤 bnajdecki
Recently, I've switched to gRPC Web. It works superbly. You have a single API definition, SDK for frontend and backend.

I have even written an article about it: https://blog.gendocu.com/posts/grpc-web-on-aws/


👤 fulafel
What good HL tools are there that write them for you? PostgREST comes to mind.