Accessing CloudHub app using non-HTTP protocol

We have been working on a healthcare project for a while and it involved using HL7 MLLP connector to receive messages from a healthcare system.

We wanted it running on CloudHub, but since MLLP is not HTTP based protocol, it was not working in the standard way.

For example, when deploying app to the CloudHub, the app is accessible on <app-name>.cloudhub.io either on port 80 or 443 depending on the use of HTTP/HTTPS.

If you hit this URL, you actually send a request to the load balancer, which forwards it to one of your workers (even if you have just one configured). It only accepts HTTP/HTTPS requests and therefore MLLP is discarded.

The key here is to forward all MLLP packets to the actual worker directly by prepending  “mule-worker-” to your app hostname.

So it can look something like this: mule-worker-<app-name>.cloudhub.io

Now you can send MLLP (or other) packets to CloudHub on whatever port you configured in the app.

You should be aware that only one worker will be used and therefore no load balancing will occur.

about author

hotovo

READ MORE

Tech corner with orange background

Angular, Gatsby, Astro? Pretty hot, huh?

Hello readers! Just as we do every month, we’ve pulled …

Hotovo tech corner

The Latest Tips, News, and New Features in the World of Web Development

Hello readers! Just as we do every month, we’ve pulled …

Asynchronous programming Hotovo tech corner

Asynchronous Programming World (Part 1)

What will this multi-episode blog post be about? In short: …