Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Rails handles the stateless communication?

 
Nikos Pougounias
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How Rails handles the stateless communication? Really, is REST as well implemented in Rails as they say?
 
Ben Scofield
author
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a very good question. As I've mentioned in other threads, the REST support in Rails is superlative - but that doesn't mean it's perfect. Statelessness is probably one of the hardest of the constraints to meet in a web framework, and though it's possible to keep your application stateless in Rails it's still difficult.

Rails does offer some features that help, though, like cookie-based sessions - but those features come with (sometimes considerable) problems.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic