help on data echange ???

G

Guest

Dear all,

I have a new project on which I need to evaluat architecture. Base on that
the mian thing I need to veify is as follow:

I have 3 different process which need to receive data from others and one of
them store those data to database...

I have read and post many thing around but no real answer.
I hvae been told to use MSMQ but too difficult to impleemnt
I have been told to use WCF with net.msmq, why not
I have been told to you a component which is base on event/delegate which
subscribe too the first process which the data... Interesting solution.

So the scenario I need to eveluate is as follow:
P1 is sending an event ( or something else ) that new data need to be process
P2 should receive that information with the data to process as parameter
P2 use P3 to store those data in a database.

How can I acomplish this, any sample or staring point ?

I have been told to use a n tiers architecture based on:
- the presentation
- the buisness logic
- the service layer ( a set of feature expose as service by my aplication)
- Data layer

For that we need to use loosy coupling evemt model...HOw to buil such loosly
coupling... any sample ? what does it really means...?

Thnaks for your help
regards
serge
 
M

Mr. Arnold

calderara said:
Dear all,

So the scenario I need to eveluate is as follow:
P1 is sending an event ( or something else ) that new data need to be
process
P2 should receive that information with the data to process as parameter
P2 use P3 to store those data in a database.

How can I acomplish this, any sample or staring point ?

Why don't you use a shared directory? P1 writes a XML file to the
directory, p2 and p3 look for the XML file in the directory, process the XML
file, writing the data to the database and deleting the file when done.
 
G

Guest

It is not so simple as it sounds with example I mentiionned. Frist of all
using files, your are never sure that file has been deleted by mistake or
modifed, or issue by someone else.
In my final application my process P1 in fact is a service which is polling
machine alalrms every 200ms, when an alarm arive, or a set of alarms, p2 must
be notified and then store the alarm to database thour the DAL.
But during that time, P1 is conituously poling new incoming alarms and the
pooling time might be musch faster that the end process of storing alarms,
especially if database i busy during a period.
So this is really an asychronous way , and security on dat delivery. Simple
files are not secure in that case.

regards
serge
 
M

Mr. Arnold

calderara said:
It is not so simple as it sounds with example I mentiionned. Frist of all
using files, your are never sure that file has been deleted by mistake or
modifed, or issue by someone else.

If this is an application running is a closed and controoled environement, I
would say that is not true.
In my final application my process P1 in fact is a service which is
polling
machine alalrms every 200ms, when an alarm arive, or a set of alarms, p2
must
be notified and then store the alarm to database thour the DAL.

Or P2 is sitting there listening and it's busy or it's not busy, working off
of a queue.
But during that time, P1 is conituously poling new incoming alarms and the
pooling time might be musch faster that the end process of storing alarms,
especially if database i busy during a period.

That's why P1 puts the data somewhere and P2 comes along and processes what
is there at the time a queuing process.
So this is really an asychronous way , and security on dat delivery.
Simple
files are not secure in that case.

Well, you got three choices.

1) MSMQ
2) .Net Remoting using serialized objects
3) SOAP Web Service using serialized objects
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top