Sign inSign up

ihippik/wal-listener

By ihippik

•Updated 5 months ago

A service that helps implement the Event-driven architecture.

Image
1

10K+

ihippik/wal-listener repository overview

⁠WAL-Listener

A service that helps implement the Event-driven architecture.

To maintain the consistency of data in the system, we will use transactional messaging - publishing events in a single transaction with a domain model change.

The service allows you to subscribe to changes in the PostgreSQL database using its logical decoding capability and publish them to the NATS Streaming server.

https://github.com/ihippik/wal-listener⁠

You can run it as follows by explicitly mounting the configuration file to it:

```docker run -v $(pwd)/config.yml:/app/config.yml ihippik/wal-listener:latest``

You can find an example configuration file here:

https://github.com/ihippik/wal-listener/blob/master/config_example.yml⁠

⁠K8S Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
  name: wal-listener
  namespace: dev
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
  selector:
    matchLabels:
      app: wal-listener

  template:
    metadata:
      name: wal-listener
      labels:
        app: wal-listener
    spec:
      containers:
        - name: app
          image: ihippik/wal-listener:latest
          imagePullPolicy: IfNotPresent
          command:
            - "./app"
          args:
            - "--config"
            - "/var/configuration/config.configmap.yml"
          volumeMounts:
            - name: "config"
              mountPath: "/var/configuration"
              readOnly: true
          resources:
            requests:
              memory: "64Mi"
              cpu: "100m"
            limits:
              memory: "64Mi"
              cpu: "100m"
      volumes:
        - name: "config"
          configMap:
            name: "wal-listener"
            items:
              - key: "config.configmap.yml"
                path: "config.configmap.yml"

Tag summary

Content type

Image

Digest

sha256:02692903d…

Size

22.3 MB

Last updated

5 months ago

docker pull ihippik/wal-listener