How to code for different versions of frameworks/services/etc ....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tassos Souris
    New Member
    • Aug 2008
    • 152

    How to code for different versions of frameworks/services/etc ....

    Hi! Think that this is the right thread for this question...

    Let's say that i write a client library for a server. The server of course gets updated and new versions of that server are released.

    How to code the client library in order to do stuff such as:
    1) If the client library is for version 2 but the
    user connects to version 1 of the server using that
    library, how to guard for unsupported operations
    etc etc

    2) other version related problems that may occur...


    In general any link to a resource (such as an article, a tutorial, or even a book) on this topic is highly appreciated!!!!
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    first of all make sure your server has backward compatibility.

    Make sure updated server didn't make obsolete any command supported by version 1.

    I hope your Client has capability to ignore unknown command,

    In case of version 2 client connecting version 1 server,

    1. If server has the capabilities to response on version request then, make sure it can decide the server request according to version

    Comment

    • Tassos Souris
      New Member
      • Aug 2008
      • 152

      #3
      i am searching mostly for some ready solutions, either in the form of design patterns or in frameworks that take care of version matching etc etc... is there anything for that?

      Comment

      Working...