Sign inSign up

bobrik/http-replicator

By bobrik

Updated over 11 years ago

Image
1

437

bobrik/http-replicator repository overview

Replicate HTTP requests to many hosts

Can be useful to push some state to the list of upstreams using single endpoint.

This is how it works:

                        ┌─────────┐
                        │SAME DATA│
                        └─────────┘
                             │
                             │
                             │                     ┌──────────┐
                 ┌───────────┴───────────┐  ┌─────▶│ UPSTREAM │
                 │                       │  │      └──────────┘
                 │                       │  │
┌─────────────┐  ▼  ┌─────────────────┐  ▼  │      ┌──────────┐
│   REQUEST   │────▶│ HTTP REPLICATOR │─────┼─────▶│ UPSTREAM │
└─────────────┘     └─────────────────┘     │      └──────────┘
                                            │
                                            │      ┌──────────┐
                                            └─────▶│ UPSTREAM │
                                                   └──────────┘

Replicate requests from 127.0.0.1:9999 to:

docker run -rm -it -p 127.0.0.1:9999:9999 bobrik/http-replicator --listen :9999 \
    --upstreams http://one.prod:13000,http://two.prod:13000,http://three.prod:13000

Tag summary

Content type

Image

Digest

sha256:d01cc3d2d

Size

-

Last updated

over 11 years ago

docker pull bobrik/http-replicator