Re: Storing data periodically on remote server
- From: carmelo <csaffi@xxxxxxxxxx>
- Date: Wed, 8 Oct 2008 00:50:18 -0700 (PDT)
On 7 Ott, 18:10, "Peter D." <pete...@xxxxxxxxx> wrote:
On Oct 7, 6:25 am, carmelo <csa...@xxxxxxxxxx> wrote:
Hi everybody,
I have to develop a java application to send every 10 seconds a tuple,
made of 3-4 fields, to a remote server. I thought to proceed in this
way:
- server side: mysql dbms (for storing clients transmitted data)
- client side: java application which makes an odbc connection to the
remote mysql db
The expected workload is quite high, in fact, there will be about 100
clients, each of them send data on time interval of 10 seconds.
Do you think is it a good solution?
Thank you very much
Carmelo
I don't know if connecting to the DB directly is a good idea. I would
recommend creating a web service to accept the data instead. The
client will connect to the web service and send the info. The server
side web service will then connect to the DB and do what it needs to
do.
With a web service you can even give your clients the option of coding
their own solutions with any language. Also, it gives you free reign
on your DB server since the web service will abstract it from the
users. If you want to change DBMS you just need to modify the web
service and not every single client.
I think providing a standard web service interface is the way to go.
Thank you for your interesting reply.
But, do you think that using web services will cause problems having
100 clients which connects to the server every 10 seconds? Because
using web services it will be more flexible, but I'll have another
layer...
What do you think about?
.
- Follow-Ups:
- Re: Storing data periodically on remote server
- From: Arne Vajhøj
- Re: Storing data periodically on remote server
- From: Peter D.
- Re: Storing data periodically on remote server
- From: Lew
- Re: Storing data periodically on remote server
- References:
- Storing data periodically on remote server
- From: carmelo
- Re: Storing data periodically on remote server
- From: Peter D.
- Storing data periodically on remote server
- Prev by Date: Re: Storing data periodically on remote server
- Next by Date: Re: Reading from COM port
- Previous by thread: Re: Storing data periodically on remote server
- Next by thread: Re: Storing data periodically on remote server
- Index(es):
Relevant Pages
|