Skip to main content

redis_canal

Project description

codecov

redis-canal

Proxy redis stream from one to another through global queue service.

Motivation: Redis provided on the cloud is usually only available within a VPC and does not provide external access. We want to provide a way to synchronize messages across clouds without going through a VPN.

Architecture Overview

Supported queue service

  • AWS SQS

Welcome to contribute more queue service, see adapter/impl for more details.

We also support the plugin system, the adapter can also be imported as a third-party library. See example for more details.

Install

pip install redis-canal[all] for all components.

Or use docker image

docker pull wh1isper/redis-canal

Usage

Use CLI

  • redis-canal stream-to-queue to start a daemon to consume redis stream and push to global queue
  • redis-canal queue-to-stream to pull from global queue and push to redis stream

CLI args support envvar, which you can refer to envs.py.

TODO

  • More adapter for Google PubSub, Kafka, etc
  • Allows users to more easily configure the adapter(Now only support environment variables, within Adapter)

Develop

Install pre-commit before commit

pip install pre-commit
pre-commit install

Install package locally

pip install -e .[test]

Run unit-test before PR

pytest -v tests

Develop sqs adapter

You need to configure your AWS account first. See AWS CLI docs for more details.

Make sure your account has sqs:* permission. Then you can run pytest -v tests/adapter/test_sqs_adapter.py to test it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redis_canal-0.1.1.tar.gz (50.1 kB view details)

Uploaded Source

Built Distribution

redis_canal-0.1.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file redis_canal-0.1.1.tar.gz.

File metadata

  • Download URL: redis_canal-0.1.1.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for redis_canal-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8ebc8ae3c145fcf64615b4f8745a3734a94a27052a321a78c1ea866114a28c16
MD5 0588cdd0a8241aea97e2bf832e271293
BLAKE2b-256 e043cb0434d14f27c2ad686a6932294a32d2dd57c29cd0584c23445c3efb3375

See more details on using hashes here.

File details

Details for the file redis_canal-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: redis_canal-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for redis_canal-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5153c5aab49422cded9f6684f98b1b07f781f74a2ab82e58c98083e9b12cc6
MD5 c64a13bd63382de41b7647ac0ffb25f3
BLAKE2b-256 0ee2b32709064c663e2b093059d9feb901e786a125c9b3506ec2c854ebd15b40

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page