The invention discloses a transaction closed-loop
processing method and
system based on double-end collaborative hot update and
containerization, and the method comprises the steps: carrying out the
encryption storage of a script based on a management end, and pushing the encrypted script to a
server; after receiving the script based on the
server side, executing decryption and real-time compiling, generating an
executable instance and storing the
executable instance into a pre-compilation instance
pool; the instance is automatically released by the JVM when the reference count returns to zero; the
server side is deployed in a Kubernetes cluster in a
containerization manner, and the capacity is dynamically expanded and shrunk; the method comprises the following steps of: performing closed-loop
processing on a service request by the same server instance: completing multi-step operation through a local
database transaction; realizing cross-method state transfer by using JVM
memory sharing; the call link depth is constantly a preset value and is directly referenced and executed through a memory. According to the method, the management end pushes the script to the server end, the server end compiles in real time, and Kubernetes
containerization capacity expansion and contraction are combined, so that service request closed-loop
processing is realized,
distributed transaction coordination is eliminated through local transaction and
memory sharing, and
transaction time consumption is reduced.