Stream: hapi
Topic: Subscriptions vs Interceptor/Hook
OS (Oct 23 2020 at 14:26):
Cross-Post in Subscriptions: https://chat.fhir.org/#narrow/stream/179229-subscriptions/topic/Subscription.20vs.2E.20Interceptor.2FHook/near/214217622
We are building a FHIR system where the data is ingested through FHIR, but then needs to be transformed by a separate service. I'm trying to find the balances between writing a custom interceptor to take that data after it's been saved and send that data to our job queue (MSK/Kafka) or whether to use Subscriptions with Kafka-rest. I think I've settled on the latter approach, but wanted to post here to see if folks had any thoughts, feedback. Are subscriptions any more or less reliable than using interceptors to kick off that job?
James Agnew (Oct 25 2020 at 14:16):
@OS - Both options should be reliable, but the big difference is that interceptors are synchronous where subscriptions (ie. called within the DB transaction) are asynchronous (called outside of it).
Vibin_chander (Jan 08 2021 at 10:19):
@James Agnew should we enable any feature in the HAPI while installing to enable the subscription resource?
I tried to hit the public hapi server endpoint with a subscription resource and it works but it does not work when I replicate the HAPI FHIR in local
Vibin_chander (Jan 24 2021 at 10:57):
Can anyone look at this issue ?.. When I try in the hapi opensource the subscription works but its not working when it is insalled in the local. Although Im getting the response OK for subscription. The data is not going to the endpoint
Last updated: Apr 12 2022 at 19:14 UTC