0.1.12 • Published 3 years ago

@neonlaw/schemas v0.1.12

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

Neon Schemas

This is a package in Node and Ruby that contain schemas written in Apache Avro for all of our microservices.

This package can be included to guarantee correct publishing and subscribing of messages from our message queue.

Upgrading the GCP Schema

You can update the GCP Pub/Sub schema with the GCloud CLI.

gcloud config set project neon-law-staging # or neon-law-production

# list topics
gcloud pubsub topics list

# Add schema
gcloud beta pubsub schemas create outbound_email \
  --type=avro \
  --definition="$(cat ./src/outbound_email.avsc)"

# Create the outbound email topic
gcloud beta pubsub topics create outbound_email \
        --message-encoding=BINARY \
        --schema=outbound_email
# Create the dead-letter-queue outbound-email-topic
gcloud beta pubsub topics create outbound_email_dlq \
        --message-encoding=BINARY \
        --schema=outbound_email

# Create the subscription
gcloud pubsub subscriptions create outbound_email \
    --topic=outbound_email \
    --ack-deadline=30 \
    --dead-letter-topic=outbound_email_dlq \
    --max-delivery-attempts=10

Schemas

  • Outbound Emails
    • Welcome Email

Developing

bundle
bundle exec guard
0.1.11

3 years ago

0.1.12

3 years ago

0.1.10

3 years ago

0.1.2

3 years ago

0.1.5

3 years ago

0.1.0

3 years ago