Monday, February 24, 2014

Proxy Service Version Management with WSO2 ESB

Versioning of proxy services in an SOA environment is a common requirement. Versioning is required when you want to add / update or change the functionality of a proxy service without affecting the existing consumers of that proxy service. 




















Above diagram shows a typical versioning scenario. If the change in Service X 2.0 is compatible with Service X 1.0, then we can simply point to service X version 2.0 and consumers will not be affected by the change. However, if the change is in compatible, then we will have to introduce a new proxy service version.

General Principles of versioning

1. Client should not be forced to use the new version immediately
  • Gradual client migration
  • Retire services gracefully
2. Support multiple versions concurrently 
  • Limit the number of versions though governance
  • Only the latest version is discover-able

Solution 1. 

Create two versions of the proxy service. Consumer A can access the version 1.0 of the service and Consumer B can access version 2.0 of the service. Gradually migrate Consumer A to proxy service version 2.0. This way, consumer A can live with version 1.0 and plan for upgrading to version 2.0. Both versions of the proxy service will exist till version 1.0 is deprecated.
























Versioning with WSO2 ESB


Easiest way to version proxy services is to create a new version of the proxy service and related artifacts by appending the version information to the proxy service name. It is best to add version information to artifacts as a best practice. 

For example consider we have to  proxy a web service named StockQuote. Then we can name the proxy service as StockQuoteProxyV1. All artifacts contained with the proxy service should also be named accordingly. For example out endpoint pointing to the StockQuote service can be named as StockQuoteEndpointV1. 

Now creating and deploying new version of the proxy service becomes a simple task. We just need to update all the related artifacts with the new version number.


Future Improvements

Another approach to implementing proxy service versioning by having version as an attribute has been tried in the parent synapse project and there is a GSOC project on the same topic. These improvements are planed for future releases of WSO2 ESB.

References. 

10 comments:

  1. I browse your article and obtain vital data additionally if you've got any question concerning subjected topic
    access Bee MP3 in UK

    ReplyDelete
  2. websites anonymously, you can leave comments and feedbacks on sites without fear of repercussion. You have full control to leave your remarks because the site cannot trace your activities on their websites back to you. get more here
    www.jobmejlet.COM WWW.OOPROXY.COM WWW.SSL-4-PROXY.COM
    WWW.WEB-4PROXY.COM

    ReplyDelete
  3. I use this web proxy to unblock any website and anonymous surfing Pinproxy.com

    ReplyDelete
  4. Your nice work is very attractive and impressive.
    Mp3Juices UK proxy

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete
  7. This comment has been removed by a blog administrator.

    ReplyDelete
  8. This comment has been removed by a blog administrator.

    ReplyDelete
  9. This comment has been removed by a blog administrator.

    ReplyDelete
  10. Marvelous site. In the event that you don't need anybody to realize what you are downloading including your Web access Supplier then you ought to be utilizing a VPN Administration. Locate the best ones here. http://www.anonymousvpnsoftware.com

    ReplyDelete