开发者

What is a fast/scalable way to write a RESTful API today?

开发者 https://www.devze.com 2023-04-06 08:46 出处:网络
I will be writing a RESTful API soon and am wondering as to which technology lends itself most to ma开发者_StackOverflow社区king the end product scalable and fast.

I will be writing a RESTful API soon and am wondering as to which technology lends itself most to ma开发者_StackOverflow社区king the end product scalable and fast.

Currently I am considering:

  • Node.js/Express
  • Ruby/Sinatra


I strongly suggest you look into the fascinating topic of HTTP caching. It is not so much the server implementation that determines your response performance or server capacity but how you take advantage of cachability ( which is a core rationale behind REST's design).

Remember: the fastest request is that which you do not need to handle but that comes out of a cache. Technologies like edge side includes (ESI) let you split your representations into parts that have different volatily.

On the sever side, use the tools that suits you development process needs.

0

精彩评论

暂无评论...
验证码 换一张
取 消