ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Sequential Processing using fileInput node

Post new topic  Reply to topic Goto page Previous  1, 2
 Sequential Processing using fileInput node « View previous topic :: View next topic » 
Author Message
fjb_saper
PostPosted: Wed Dec 16, 2015 5:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Why does IIB have to post from a queue into the cloud via HTTP???
This design makes no sense at all.
Use MQ in the cloud and directly read from the queue and post to your application. No HTTP involved. Assured delivery with persistent messages and if the application reading off the queue and posting fails, the message will await in the queue (Syncpoint). Of course the single point of failure is reading from the queue and posting...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Dec 16, 2015 5:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

RangaKovela wrote:
We are moving files from backend directory to IIB Directory (directory from which FileInput Node picks up the messages) using batch script hourly basis.

We have designed two flows here.
Flow1 - which picks Files using fileInput node and posts Files into MQ
Flow2. - Process MQ message received from flows and post them in Cloud base web application using HTTPS


Your design becomes more awesome by the moment.

Why exactly are you putting files onto MQ and then posting them to the web? What value does this add?

We have implemented backout mechanism in case of any intermittent connectivity failures in Flow2 to ensure sequential processing.

RangaKovela wrote:
We are planning to get disable the main queues using PCF messages from Flow2 if in case connectivity issues persists after 5 retries. An e-mail notification/text message will be sent out to Support team. Support team will have to retry Messages in backout queue followed by enabling of main queue once backend system is up and running.


I do hope this isn't the "value" MQ is adding. This is just horrible.

RangaKovela wrote:
This will ensure sequential processing.


No it won't.

RangaKovela wrote:
Any suggestions


Redesign this. It's an accident waiting to happen on a number of fronts.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
joebuckeye
PostPosted: Wed Dec 16, 2015 5:35 am    Post subject: Reply with quote

Partisan

Joined: 24 Aug 2007
Posts: 365
Location: Columbus, OH

We would consider using PCF messages as part of normal operations to be a design "smell".

But this system just seems to be setup to be a maintenance and operational nightmare.

Files - check.
Message/file affinity - check.
Multiple protocols (file, MQ, HTTP) - check.

Ouch.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Dec 16, 2015 4:34 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Sometimes the source data is in a file. What is the difference between the application reading the file and converting the records into MQ messages versus a WMB message flow that reads the file and converts the records into MQ messages?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Dec 16, 2015 4:35 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

joebuckeye wrote:
We would consider using PCF messages as part of normal operations to be a design "smell".

But this system just seems to be setup to be a maintenance and operational nightmare.

Files - check.
Message/file affinity - check.
Multiple protocols (file, MQ, HTTP) - check.

Ouch.


Windoze - check
Coding MQ administrative functions into a message flow - check
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
RangaKovela
PostPosted: Thu Dec 17, 2015 2:17 am    Post subject: Reply with quote

Apprentice

Joined: 10 May 2011
Posts: 38

fjb_saper wrote:
Why does IIB have to post from a queue into the cloud via HTTP???
This design makes no sense at all.
Use MQ in the cloud and directly read from the queue and post to your application. No HTTP involved. Assured delivery with persistent messages and if the application reading off the queue and posting fails, the message will await in the queue (Syncpoint). Of course the single point of failure is reading from the queue and posting...

Have fun


Unfortunately Cloud based web application does support reading or writting data from MQ. They don't seem to have MQ adapters. Hence we have to use API calls to export data from CRM system to Cloud app or import data into CRM system from Cloud app. Cloud application supports only API based integration over HTTPS.
Back to top
View user's profile Send private message
RangaKovela
PostPosted: Thu Dec 17, 2015 2:27 am    Post subject: Reply with quote

Apprentice

Joined: 10 May 2011
Posts: 38

PeterPotkay wrote:
Sometimes the source data is in a file. What is the difference between the application reading the file and converting the records into MQ messages versus a WMB message flow that reads the file and converts the records into MQ messages?


*) Application capability to write messages into MQ over network
*) Though MQ Client is for free, some developers of application just don't like to change. I tried my best to convince them to use MQAdapters but no luck
--
*) From WMB perspective, inorder to take advantage of MQ backout mechanism built in MQ Input node though FileinputNode has a backout mechanism there is overhead of doing repeated SFTP logins on to the remote fileserver .
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Dec 17, 2015 3:07 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You have to use the right protocol for the job.

You cannot accept the limitations of an inexperienced developer otherwise all IT systems will be ruined over time.

Learning to use MQ for simple getting of messages takes about 60 minutes.

There are various samples around for different languages. Find out which one he wants to use and give him a ready to use sample.

Which language does he want (for .dot net is there a complete trigger monitor sample assembly available).
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 17, 2015 5:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

zpat wrote:
You have to use the right protocol for the job.

You cannot accept the limitations of an inexperienced developer otherwise all IT systems will be ruined over time.

Learning to use MQ for simple getting of messages takes about 60 minutes.

There are various samples around for different languages. Find out which one he wants to use and give him a ready to use sample.

Which language does he want (for .dot net is there a complete trigger monitor sample assembly available).

And as the developer is working on a "Web" application, don't forget to give him a JMS sample. If the developer is using Node.js or one of it's derivates have him / her use the AMQP protocol (MQ Light) to talk to MQ V8.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Dec 17, 2015 5:38 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

RangaKovela wrote:
*) From WMB perspective, inorder to take advantage of MQ backout mechanism built in MQ Input node


As has been said previously in this thread, this is a poor design and doesn't guarantee what you see to think it does.

RangaKovela wrote:
FileinputNode has a backout mechanism there is overhead of doing repeated SFTP logins on to the remote fileserver


This is the most serious problem you can think of? Seriously?

I echo the comments of my worthy associates. You seem to be tying yourself in knots trying to overcome the wrong problems, and a key element of your design seems to be "what the developer knows how to write".

This is a recipe for disaster. 6 months to a year from now, this system will be abandoned because the administrators spend so much time unraveling the back out problems and fixing the file transfers it's faster for them to do the whole thing manually.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Dec 17, 2015 6:47 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

MQTT can use a WebSockets interface to talk to a queue manager using the MQTT extensions, or better to MessageSight.

If your cloud based "web application" doesn't support WebSockets, then it should be beaten on until it does.

And any web developer that can't master WebSockets can't apparently use sample code, and should probably be relegated to help desk for a while until they remember how.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Sequential Processing using fileInput node
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.