Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Are webservices always about idempotent service APIs ?  RSS feed

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By idempotent, I mean stateless.

Most of the WebService APIs I've seen are idempotent. What technologies can be used to implement stateful services ?

Regards,

Pho
 
J. Acc.
author
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because of the emphasis on creating stateless Web Services state management has become a big issue in SOAs. Many rely on IMDBs, however, you can also utilize the WS-Coordination services to manage context information. The WS-Resource framework has also been recently released, and deals with state management head-on.

Here are some related links:
http://www-106.ibm.com/developerworks/webservices/library/ws-resource/ws-wsrfpaper.html

http://www-106.ibm.com/developerworks/webservices/library/ws-coor/
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thomas,
WS-Resource spec has been been initiated by IBM,HP etc. I dont see Microsoft in it. My question is will it become industry standard or it will just be used by some vendors.
Thanks
 
J. Acc.
author
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WS-Resource is designed to work with IBM's WS-Notification specification. Back when IBM released this standard, it parted ways with Microsoft who came out with a similar specification entitled WS-Eventing. It's hard to say where this is all going, but some analysts are saying that these are simply posturing moves, and that they will eventually merge their efforts into a single standard or framework.
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thomas,

Thanks for the resources.

It's hard to say where this is all going, but some analysts are saying that these are simply posturing moves, and that they will eventually merge their efforts into a single standard or framework.


This sounds very scary. Looks like in the interim, developers are going to have to create their own custom state tracking system.

Pho
 
Xie Ruchang
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pho Tek,

Just a comment on idempotent and stateless. Suppose I write a webservice to return the current time. It is stateless but not idempotent. But if a service return the sum of two number, then it is stateless and idempotent.

Best Regards,
Frankie
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!