Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aiven/global-schema-registry-test-for-apache-kafka
Automated Apache Kafka Global Schema Registry Test Deployment
https://github.com/aiven/global-schema-registry-test-for-apache-kafka
Last synced: 16 days ago
JSON representation
Automated Apache Kafka Global Schema Registry Test Deployment
- Host: GitHub
- URL: https://github.com/aiven/global-schema-registry-test-for-apache-kafka
- Owner: aiven
- Created: 2021-08-25T19:00:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-07T14:44:17.000Z (almost 3 years ago)
- Last Synced: 2023-03-23T22:11:00.398Z (almost 2 years ago)
- Language: Shell
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 75
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shared Global Karapace Schema Registry Test
---
### Overview
- Deploys infrastructure via Terraform
- two Apache Kafka® services and requisite dependencies
- Creates and configures (access, etc. for) the requisite integration-endpoint, proxy, etc.
- Configures a primary Apache Kafka and then accesses those resources from the secondary endoint via HAProxy
- The queries to the secondary Apache Kafka services Karapace schema registry endpoint via the `test-schema-registry.sh` script are proxied to the primary Apache Kafka services schema registry--the logical flow is shown in below diagram:
#### Global Karapace Schema Registry Delegation Logical Diagram![global schema registry delegation](./images/global-schema-registry-delegation.png?raw=true)
---
##### Deploy the test infrasture and create/configure the integration endpoint
- Deploy all requisite infrastructure simply by executing the main `DEPLOY` script
- `./bin/DEPLOY-terraform-infra.sh`
- which deploys requisite infrastructure via Terraform, and then runs several dependency scripts:
- `bin/create-endpoint-and-integration.sh`
- `bin/test-schema-registry.sh`- Once this main wrapper script is executed, all dependency scripts, etc. will be executed as well.
- We can then validate on the "dependent" Kafka service's page in the Console (and in the API responses) will appear the Karapace Schema Registry section with its own URL and credentials. You can now send Karapace Schema Registry requests to the "dependent" Kafka service, they will be `proxied` to the "real/primary/global" Schema Registry URL.- The test script `bin/test-schema-registry.sh` is idempotent, and can be expanded/enhanced, and called directly if desired.
---
##### Show any/all existing infra deployed via Terraform
- `./bin/show-all-terraform-infra.sh`---
##### Destroy all test terraform infrastructure (Apache Kafka instances, services, etc.) and delete its test integration-endpoint
- `./bin/DESTROY-terraform-infra.sh`## Trademarks
Apache Kafka is either registered trademark or trademark of the Apache Software Foundation in the United States and/or other countries. HAProxy is a trademark and property of their respective owners. All product and service names used in this website are for identification purposes only and do not imply endorsement.