Skip to content

Commit

Permalink
add deployed subscription demo to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rost-is-love committed Sep 3, 2024
1 parent 95f8ed4 commit 44d960f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A collection of example applications built on top of Aidbox FHIR platform
- [Aidbox Forms Renderer with Angular.js](aidbox-forms-renderer-angular)
- [Aidbox Forms Renderer with Angular.js (controlled mode)](aidbox-forms-renderer-angular-controlled)
- [Aidbox Notify via Custom Resources](/aidbox-notify-via-custom-resources) ([demo](https://aidbox.github.io/app-examples/aidbox-notify-via-custom-resources/))
- [Aidbox Subscriptions & Kafka TopicDestination](/aidbox-subscriptions-to-kafka/)
- [Topic-Based Subscription to Kafka](/aidbox-subscriptions-to-kafka/)

## Documentation

Expand Down
18 changes: 16 additions & 2 deletions aidbox-subscriptions-to-kafka/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Aidbox Subscriptions & Kafka TopicDestination
# Topic-Based Subscription to Kafka

This is a demo of [Aidbox SubscriptionTopic](https://docs.aidbox.app/modules-1/topic-based-subscriptions/wip-dynamic-subscriptiontopic-with-destinations) integrated with Kafka.

Expand All @@ -13,7 +13,7 @@ Objectives:
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**

- [Aidbox Subscriptions & Kafka TopicDestination](#aidbox-subscriptions--kafka-topicdestination)
- [Topic-Based Subscription to Kafka](#topic-based-subscription-to-kafka)
- [Prerequisites](#prerequisites)
- [Step 1: Set Up the Environment](#step-1-set-up-the-environment)
- [Set Up Aidbox](#set-up-aidbox)
Expand All @@ -25,6 +25,7 @@ Objectives:
- [Submit Form](#submit-form)
- [Check TopicDestination Status](#check-topicdestination-status)
- [See Messages in Kafka UI](#see-messages-in-kafka-ui)
- [Demo](#demo)

<!-- markdown-toc end -->

Expand Down Expand Up @@ -137,3 +138,16 @@ GET /fhir/TopicDestination/kafka-destination/$status
### See Messages in Kafka UI
Open [Kafka UI](http://localhost:8080/) -> `Topics` -> `aidbox-forms` -> `messages` and review the `QuestionnaireResponse` that was created after submitting the form.
## Demo
A fully deployed and configured [Aidbox](https://subscriptions.hz.aidbox.dev/) instance with [Kafka](https://kafka-ui-subscriptions.hz.aidbox.dev/) is available for you to explore how Aidbox's SubscriptionTopic works. The SubscriptionTopic in Aidbox is set up to send `QuestionnaireResponse` events in the `completed` status to Kafka.
To try it out:
1. Open the [Aidbox](https://subscriptions.hz.aidbox.dev/) link.
2. Log in using the username `subscriptions-demo` and the password `password`.
3. Navigate to [Aidbox Forms](https://subscriptions.hz.aidbox.dev/ui/sdc).
4. Click on `share`, then select `attach`, copy the link, and open it.
5. Fill out the form and submit it to create a `QuestionnaireResponse`.
6. Finally, open the [Kafka UI](https://kafka-ui-subscriptions.hz.aidbox.dev/ui/clusters/local/all-topics/aidbox-forms/messages?filterQueryType=STRING_CONTAINS&attempt=2&limit=100&page=0&seekDirection=BACKWARD&keySerde=String&valueSerde=String&seekType=LATEST) to view your `QuestionnaireResponse` in the Kafka messages.

0 comments on commit 44d960f

Please sign in to comment.