Re: Application design
- From: "David" <david.colliver.NEWS@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Oct 2008 16:20:11 -0000
Thanks Patrice,
I have never done a queue based system (and also done very little in the way
of generating events, which leads me onto a new thread that I will ask in a
short while.).
Would you be able to do a quick mock up so that I can understand the
principle (or point me in the direction)?
Thanks.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:BE6B921E-0F83-43FE-9562-8658659E93CA@xxxxxxxxxxxxxxxx
Same as Peter, I meant I would add them a processing queue (this is the
word I omitted) or even queues (for example depending on priority) . In
addition to the pure technical difference between a file system watcher
and a queue, I feel it would allow to store some additional data that
could help in managing each entry.
It should be quite easy to do a mock up to simulate the base principle you
would use...
--
Patrice
"David" <david.colliver.NEWS@xxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le
message de groupe de discussion : O1dGeBcOJHA.1744@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Thanks Sloan, Peter and Patrice. Definately food for thought.
Patrice, can you expand on what you mean?
The system has to work with a plugin architecture and be scalable. For
example, it will also be database driven and I need to be able to use
different databases. This I can easily achieve by using a layered
approach, something I haven't mentioned yet though is that it has to be
able to work from a clustered perspective as well (such as a clustered DB
server or clustered web server etc.) However, I don't think that affects
this part of the structure.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:DD4305A1-614E-44FB-BA1B-59CC117C006D@xxxxxxxxxxxxxxxx
As files are submitted by using a web service I would add them to a
processing at this point rather than just using the file system. This
way you can add whatever you want to each entry (either priority,
chronological time, current status, and even try to reprocess in case of
a failure).
Similary it should be easier to use multiple threads if needed this
way...(i.e. basically you just share reading/setting the current
status).
--
Patrice
"David" <david.colliver.NEWS@xxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le
message de groupe de discussion :
uJyGYbSOJHA.4372@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
This question could be very subjective but I am after a way to design
this...
I am developing in C#, .NET 2.0
Basically, I have data coming in from a mobile phone. This is sending a
file to a webservice. The webservice will save the file to local disk
and also send / receive messages from the mobile phone. This part is
working fine, though wether I should have a multi-thread on this, I
don't know.
Once the file has been saved, I need to then work on it. The process
can become quite intensive. Also, each file can come from a different
customer and each customer will have a 'priority' preference, for
example, some files have to be acted upon immediately (due to them
being time critical) where others that are not so critical can wait.
My thoughts to handle this is a windows service with a filewatcher to
watch the webservice receiving folder. Then, depending on the file
(customer), react to it...
I guess I should be doing threading here (I have not really done any
threading before...) but I do have to bear in mind priority files.
Also, if there are for example, 3 files from one phone, they have to be
handled chronologically.
We could be talking many thousands of files per day that need to be
handled (both for the webservice and windows service). Also, there
could be varying outputs, for example, some customers may just want a
raw processed file (XML), others may want an image while others may
want a PDF. Also, any / all of these could be selected.
Finally, the file can be delivered either back to the phone, via email,
via FTP, HTTP to another web server or any other common communications
technology. (Again, any / all options could be selected.)
I also have to make the application work on mulitple servers, though
that probably won't be such an issue unless I have a common fileserver
to store the incoming files and the filewatcher service on two servers
both attempt to collect the same file.
Ideas on how I should approach this would be very much appreciated.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
.
- Follow-Ups:
- Re: Application design
- From: Patrice
- Re: Application design
- References:
- Application design
- From: David
- Re: Application design
- From: Patrice
- Re: Application design
- From: David
- Re: Application design
- From: Patrice
- Application design
- Prev by Date: papersources and papersizes really slow on some systems.
- Next by Date: Event handling
- Previous by thread: Re: Application design
- Next by thread: Re: Application design
- Index(es):
Relevant Pages
|