Service Virtualization

Expand all | Collapse all

Toggle service model behavior at runtime

Jump to Best Answer
  • 1.  Toggle service model behavior at runtime

    Posted 05-25-2016 03:53 PM

    Hi All,

     

    I have a requirement to toggle service model behavior at run-time. Is there any inbuilt feature to achieve it. The purpose of this use case is to reduce incoming load on the live service and implement caching mechanism within the CA DevTest service.

     

    I am interested in 2 model behaviors -

    1. Provide virtualized responses

    2. Pass requests to the live system

     

    My requirement is as below -

     

    - When first client request comes to the service

         - service will check in the data set for any previous request-response pair

         - If not found then service will pass request to the the live back-end service

         - Store request-response pair in data set for future use

         - Send response back to the client

     

    - When same 2nd client request comes to the service

         - service will check in the data set for any previous request-response pair

         - If found then service will respond back with the response from data set

     

    Thanks.



  • 2.  Re: Toggle service model behavior at runtime.



  • 3.  Re: Toggle service model behavior at runtime

    Posted 05-25-2016 04:06 PM

    Thanks Ben. It will be helpful but I want to automate switching of model behavior. The session viewing and model healing is related to the virtual service after the deployment.



  • 4.  Re: Toggle service model behavior at runtime
    Best Answer

    Posted 05-27-2016 01:00 AM
    What type of service is this -- http?


    You could use the Stand In mode where the.  Retreat first goes to the VS and if monarch found it is routed to the Live System.


    To do the second one - you'd use Learning Mode where since the response will come from the Live System, it will be added to the running system and the next time the same request comes in, the response is from the VS based on what was learnt.




  • 5.  Re: Toggle service model behavior at runtime

    Posted 06-01-2016 02:55 PM

    Thanks Koustubh. Let me try out the option. My service type is http. As per my understanding I have to keep my default mode as Stand In and if request-response pair not found in in-memory data set then changed the mode to Learning. I have to toggle between these 2 modes.



  • 6.  Re: Toggle service model behavior at runtime

    Posted 01-17-2017 04:16 PM

    Aniket,

     

    Did Koustubh's recommendations help resolve this issue?