问:我应该使用数据库还是使用内存到内存复制来进行会话故障转移?
Q: Should I use a database or memory-to-memory replication for session failover?
内存复制过程会重复进行,直到标为dirty的页面数量不再减少为止。
This process is repeated until the number of pages marked as dirty are no longer decreasing.
即便如此,它仍然包括数据库协议开销,以及从服务器空间到应用程序空间的内存复制。
Even then, it still includes the database protocol overhead and memory copy from the server space to the application space.
And when you call a function, one of the things X that happens is whatever your passing in, for instance, X, ; and if this is A, this thing gets copied into A; so at that moment in time of calling increment, I actually have two copies of the same value in memory but they're referred to by different names.
当你调用一个函数,其中发生的一件事情是,不管你输入什么,比如,或者是A,它把这个东西复制到A中;,调用increment的时候,实际上在内存中,有两个同样的值的内存块,但是它们有不同的名字。
应用推荐