REST is not perfect for everything
ownedthx.com
REST is not perfect for everything
1–9 of 9 posts
Re: REST is not perfect for everything
#2(Google tech Talk on Designing an API.) http://video.google.com/videoplay?docid=-3733345136856180693
If your plans make everyone happy, you're probably trying to do too much.
Re: REST is not perfect for everything
#3It's a good sign that REST is not perfect for everything. Trying to be everything to everyone is a trap that framework and API designers fall into. You should actually aim for making most people mostly happy, but leave some people rather bummed out. (Google tech Talk on Designing an API.) http://video.google.com/videoplay?docid=-3733345136856180693 If your plans make everyone happy, you're probably trying to do too m…
Re: REST is not perfect for everything
#4It's a good sign that REST is not perfect for everything. Trying to be everything to everyone is a trap that framework and API designers fall into. You should actually aim for making most people mostly happy, but leave some people rather bummed out. (Google tech Talk on Designing an API.) http://video.google.com/videoplay?docid=-3733345136856180693 If your plans make everyone happy, you're probably trying to do too m…
Quick EDIT: I've actually seen people try to design fundamentally stateful APIs using REST. These people admit they are stateful, and that they must be stateful, yet they continue to use REST because it's what various web companies use and promote (for totally different problems).
Re: REST is not perfect for everything
#5If there are any other helpful links on REST implementation, particularly working with legacy systems who are not already RESTful, that would be helpful for my start-up.
Otherwise, i'll just keep googling. thanks!
Re: REST is not perfect for everything
#6I just designed a RESTful API, and it's built upon a very stateful backend. From the client's perspective, the only hint of statefulness is that the API sends Set-Cookie response headers, and expects to get Cookie request headers back. When they're sent, performance is much better. But to keep the requests stateless, the Cookie headers are optional. If they're not sent, the URL provides enough info to recreate the backend state. This is slower, but functionally equivalent, and I think it's an approach that qualifies as being fully and correctly RESTful, while still being essentially stateful internally.
Re: REST is not perfect for everything
#7Why do client-directed messages work poorly with REST? If there are any other helpful links on REST implementation, particularly working with legacy systems who are not already RESTful, that would be helpful for my start-up. Otherwise, i'll just keep googling. thanks!
To send an event to a client, though, means the server must have some sort of awareness of the client. Otherwise, it wouldn't know to send the client a message in the first place.
So, can you have events in conjunction with REST? Sure. Just realize once you do that, your application isn't 100% RESTful. It's RESTful and... RESTless I guess :)