arrow-left

All pages
gitbookPowered by GitBook
1 of 2

Loading...

Loading...

Message Bus Helper Hapi Proxy

A helper package for the Kafka message bus.

A helper for Kafka message bus service, It sends data to the HAPI FHIR datastore and then to the Kafka message bus based on the response from HAPI FHIR.

More particularly:

  1. It receives messages from OpenHIM

  2. It sends the data to the HAPI FHIR server and waits for the response

  3. It gets the response. According to the response status, it will send the message to the topic that corresponds to that status (2xx, 4xx, 5xx, ... )

  4. It will send back the response from HAPI FHIR to OpenHIM as well

Environment Variables

Listed in this page are all environment variables needed to run Hapi-proxy.

Variable Name
Type
Relevance
Required
Default

Kafka server

No

kafka:9092

HAPI_SERVER_VALIDATE_FORMAT

String

Path to the service configuration file

No

kibana-kibana.yml

HAPI_PROXY_INSTANCES

Number

Number of instances of hapi-proxy

No

1

HAPI_PROXY_CPU_LIMIT

Number

CPU usage limit

No

0

HAPI_PROXY_CPU_RESERVE

Number

Reserved CPU usage

No

0.05

HAPI_PROXY_MEMORY_LIMIT

String

RAM usage limit

No

3G

HAPI_PROXY_MEMORY_RESERVE

String

Reserved RAM

No

500M

HAPI_SERVER_URL

String

Hapi-fhir server URL

No

http://hapi-fhir:8080/fhir

KAFKA_BOOTSTRAP_SERVERS

String