web stats
How to process more than one message in a channel simultaneously - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-16-2014, 08:06 AM
BrianT BrianT is offline
Mirth Newb
 
Join Date: Mar 2014
Posts: 6
BrianT is on a distinguished road
Default How to process more than one message in a channel simultaneously

I'm using Mirth 3.1.1.7461

Hello,
I'm struggling on how to best accomplish this.

I have multiple clients sending to an http listener. I have my source queue off and response coming from my postprocessor - this I need because I want to give my client a synchronous response with data gathered from the destinations. The synchronous response can take upwards of 15 seconds.

The behavior I'm seeing is that if every client request takes 15 seconds, and for instance, if I have 4 clients hit simultaneously, it's going to take 60 seconds (15x4) to respond to the last client.

How can I make it so that all 4 requests process in parallel? aka Respond to everyone in only 15 seconds total.

Sage advice?
Thanks!
-Brian
Reply With Quote
  #2  
Old 12-16-2014, 08:09 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,119
narupley is on a distinguished road
Default

This is not possible right now. See this issue for more information: MIRTH-3167

Here's another thread dealing with this:

http://www.mirthcorp.com/community/f...ad.php?t=10147
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 12-16-2014, 08:41 AM
BrianT BrianT is offline
Mirth Newb
 
Join Date: Mar 2014
Posts: 6
BrianT is on a distinguished road
Default

Thanks for the info Nick. Scaling is one of my top priorities and even with caveats, it'd be great functionality. I'll keep an eye on the issue case you mention. Its got my vote for prioritization if it needs it.

-Brian
Reply With Quote
  #4  
Old 12-16-2014, 01:48 PM
santosam santosam is offline
OBX.2 Kenobi
 
Join Date: May 2012
Location: Portugal
Posts: 62
santosam is on a distinguished road
Default

In your case, the best solution for now is to have several cloned channels behind a load balancer. Your load balancer would listen on one port and then would forward the requests to each channel on a round robin scenario, for instance.
I use HAProxy and it works very well, both with MLLP and HTTP.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation