Forum Discussion

samdlee_305622's avatar
samdlee_305622
Icon for Nimbostratus rankNimbostratus
Oct 24, 2018

Questions related to OneConnect

Hi,

 

I have to two questions concerning OneConnect

 

  1. What if OneConnect profile is used together with stateful server applications, will OneConnect cause any troubles for those stateful server applications to identify each individual session sent on the same TCP connection due to OneConnect?

     

  2. After OneConnection profile is dynamically turned off on a Virtual host, how will the TCP connections pool on server side be handled? Will it be emptied immediately or those existing TCP connections will be still reused until their max age has reached?

     

Thanks in advance!

 

  • What if OneConnect profile is used together with stateful server applications, will OneConnect cause any troubles for those stateful server applications to identify each individual session sent on the same TCP connection due to OneConnect?

     

    A OneConnect profile does a LB::detach per HTTP request/response.

     

    If you have some sort of persistence applied to a virtual for a stateful server application, OneConnect will ensure that the persistence record is evaluated per HTTP request/response, and the requests will be correctly directed to maintain statefulness.

     

    If you do not any persistence, then OneConnect will enforce a Load-balance choice per HTTP request/response, which could break a stateful application that uses the same client-side connection.

     

    After OneConnection profile is dynamically turned off on a Virtual host, how will the TCP connections pool on server side be handled? Will it be emptied immediately or those existing TCP connections will be still reused until their max age has reached?

     

    I think the OneConnect server-side connection will be closed as it will be detached from any client-side flow, and a new server-side flow created for any client-side flow. The new server-side flow will last until the client-side flow closes.

     

  • On the second answer I think client and sever both side the new connection will be established after ditched the oneconnect profile dynamically because all the transactions and record will get flushed, please correct me if wrong.