REST advocates web applications without client state on the server. The famous shopping cart example is translated to a resource which typically resides in a database.
I wonder if it is a good practise to use a database for that kind of data, since the database is already the bottleneck in many applications. Wouldn't it be better to use a stateful enterprise java bean instead? Application servers are designed with clustring in mind.
What are the advantages and disadvantages of the two approaches?