GitXplorerGitXplorer
m

pg-bridge

public
45 stars
9 forks
1 issues

Commits

List of commits on branch master.
Verified
247ef688c5df30554d4a183a39aadc6f2d80ccf4

Merge pull request #1 from leegould/master

mmatthewmueller committed 6 years ago
Unverified
453469e0f911a0b45d6a582f6592cd7dd94c90a2

Adding environment variable config

lleegould committed 7 years ago
Unverified
124fc4608f48136bd14f040601d5d9b027eae93f

add client.Ping() to immediately test the database connection

mmatthewmueller committed 8 years ago
Unverified
18190634881ae8c4e80d81d7446aa338b78098a6

fix issues with abrupt closed requests causing segfaults.

mmatthewmueller committed 8 years ago
Unverified
05148cb23c6839d24c7aa48d891cf3f3add95cc4

Release 2.0.0

mmatthewmueller committed 8 years ago
Unverified
4358eb574cd03991861bf6de389ed7184062c98f

remove environment variable from postgres

mmatthewmueller committed 8 years ago

README

The README file for this repository.

PostgreSQL Bridge

Simple bridge for PostgreSQL notifications

Bridge Support

Additional Features

  • Optional health checks to ensure that this service is operating normally
  • A Dockerfile to easily deploy this service to any docker-friendly cloud provider

Running this Service with config file

pg-bridge --conf bridge.json

Example Configuration

{
  "postgres": {
    "url": "postgres://user:pass@localhost:5432/database"
  },
  "routes": [
    "task.create http://requestb.in/1bpu3kl1",
    "task.update arn:aws:sns:us-west-2:1234:somewhere"
  ],
  "health": {
    "port": 5000,
    "path": "/health"
  }
}

Running this Service with environment variables

export PGBRIDGE='{"postgres": {"url": "postgres://user:pass@localhost:5432/database"},"routes": ["task.create http://requestb.in/1bpu3kl1", "task.update arn:aws:sns:us-west-2:1234:somewhere"], "health": {"port": 5000, "path": "/health"}}'

pg-bridge

Possible issues:

You may need to set the following AWS environment variables: AWS_REGION=eu-west-2 AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=...

TODO

  • SQS support

License

MIT