Documentation ¶
Overview ¶
Copyright 2024 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
redisReplicator is an implementation of open match state storage replication using Redis Streams as the mechanism. https://redis.io/docs/latest/develop/data-types/streams/
If you're thinking about updating how data is stored in Redis by editing this file:
- All updates should be modelled as a single redis command that adds one item to the stream. Each addition to the stream gets its own entry ID from redis, meaning every update has a unique entry ID, which simplifies replication significantly. Although putting multiple key/value pairs modelling multiple updates into one stream addition is possible, it isn't accounted for in this design and shouldn't be used.
- There is a memoryReplicator as well, that aims to reproduce this redisReplicator's behavior in local memory. If you change anything here, you'll likely need to update that file too.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
This section is empty.