SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Trading Application


Trading Application

Author
Message
MK-660751
MK-660751
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 10
Hi,

We are developing a real time trading application. The real time stock quotes feed will be received as inserts into the SQL Server 2005 DB.

We should be developing an application that will connect to the DB, The traditional methods to access DB(communication will be over web) seems to be not providing tick by tick updates to clients.

I need to know if there is any workaround to handle tick by tick updates using DB. Do we need to develop sort of a middle ware to handle connections with the SQL Server DB and use socket programming to access data?

Thanks
colin.Leversuch-Roberts
colin.Leversuch-Roberts
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11741 Visits: 715
I think this is a real tricky question to ask, and I'll doubt you'll get an answer. Web connectivity usually uses disconnected record sets so real time will need continous connections and a way to force client updates. Other than that I can offer no other thoughts, sorry.

The GrumpyOldDBA
www.grumpyolddba.co.uk
http://sqlblogcasts.com/blogs/grumpyolddba/
Tito Toro
Tito Toro
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 44
You should consider using something like www.LightStreamer.com or http://www.cognethos.com to provide Connectivity to your server.
The expectation of a trading app is realtime updates. A socket app will have issues with firewalls

We have developed numerous trading applications and direct connectivity to the DB is a bad idea.
samuele.armondi
samuele.armondi
SSC-Enthusiastic
SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)

Group: General Forum Members
Points: 172 Visits: 192
Hi there,
Continous DB connectivity is a bad idea, as it ties up resources and (as mentioned) suffers from socket issues. If this is a desktop app, consider creating a server (I usually use a windows service) which will be responsible for receiving the data feed from the source and notify the clients. This can be done using many technologies, but I favour remoting with custom event sinks. Then in your server have a routine which will every so often (5 minutes, 30 seconds, however often you choose) save all your current orders to the DB.
If this is a web app, the same applies, but you will have to develop a client-side Javascript engine to either keep a permanent connection open to the server or query the server at a specified interval (say every 2 seconds) to check if updates are available.
Hope this helpes,
S Armondi
samuele.armondi
samuele.armondi
SSC-Enthusiastic
SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)

Group: General Forum Members
Points: 172 Visits: 192
Sorry, just re-read the pos and saw that it is a web application!
Check out www.oilspace.net and sign up for an online demo, I think it might be similar to what you want to do.
Regards,
S Armondi
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search