Ask HN: Do you still write REST APIs?
4 comments
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?
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.
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.
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/
I have even written an article about it: https://blog.gendocu.com/posts/grpc-web-on-aws/
What good HL tools are there that write them for you? PostgREST comes to mind.