D Web Services Application Potential?
yawniek via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 29 03:39:52 PDT 2015
On Wednesday, 29 July 2015 at 09:22:44 UTC, Ola Fosheim Grøstad
wrote:
> On Wednesday, 29 July 2015 at 07:30:50 UTC, yawniek wrote:
>> in my opinion also the REST style apis will come to an end as
>> we can easily have
>> stateless apis these days ( 86.62%of browsers have websockets
>> already according to http://caniuse.com/#feat=websockets ).
>> The whole ghetto around maintaining state over http for a web
>> application is nuts if you think about how native applications
>> work.
>
> But REST is supposed to be stateless! You maintain state in the
> client and use the server like a database/information service.
> Most applications are better off with REST and SPDY as the main
> transport.
>
> Websockets are of limited usefulness, and only for auxillary
> information (e.g. pushing notifications about updates). It's
> only a TCP connection where the server can initiate
> communication.
sorry typo. i meant "we now can have statefull apis".
and i disagree on the limited usefulness.
do you have REST api in native apps? i don't see much reason why
we should not develop web applications the way we develop native
apps.
More information about the Digitalmars-d
mailing list