|
|
|
|
|
by beders
2899 days ago
|
|
The comments here show that there's still much confusion about REST being an architectural STYLE, not an actual architecture. If you can present your domain as addressable representations of resources and if you can lay out your business logic as changes to these resources,
then you could use REST via HTTP to provide access to your service. Furthermore, if it is important to allow any client to connect to your service and you don't have any control over the clients used, then adopting HATEOAS provides a backward-compatible, future-proof way for client software to work with your service. If, OTOH, you have full control over the client-side, you can trade-off these abilities for a simpler model (like GraphQL, if you must, or simple RPC over HTTP) Know what you design for. Re Caching:
Caching in HTTP is very flexible. E-Tags basically give you fine-grained control over how to cache and allow for significant bandwidth/performance improvement.
However, in many cases your app will also benefit from an additional cache layer in your persistence layer. Don't confuse them. |
|