Data transmission method based on distributed cache
The invention relates to a data transmission method based on a distributed cache. The method comprises the following steps: A, a main process is started in the distributed cache in a master-slave architecture mode to make the main process acquire cluster database information; B, the master process c...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a data transmission method based on a distributed cache. The method comprises the following steps: A, a main process is started in the distributed cache in a master-slave architecture mode to make the main process acquire cluster database information; B, the master process creates a hash table representing the consistency of all databases, creates a plurality of slave processes, and enables each slave process to correspond to one master database; c, when a client sends an instruction to the master database, the client sends information containing a key-value to be connected to the slave process, and the slave process determines the corresponding slave process and the master database through the hash table; and D, client instruction is forwarded to the correspondingmaster database by one selected slave process through a multiplexing technology. Database source codes do not need to be modified, all databases do not communicate with one another, and communicationof the databases can be a |
---|