.comment-link {margin-left:.6em;}

Tech Scribes

This is a forum for posting articles discussing your Master's or PhD research. The aim of this website is to help you get intelligent feedback and help you view the problem from a different perspective. If you wish to post on the site, please e-mail caveman(at)gmail(dot)com or mailsunildsouza(at)yahoo(dot)com with the article which you want to post.

Wednesday, August 25, 2004

A Stock Trading System

Can we replace a legacy mainframe-based stock trading system with personal computers running J2EE? Advantages include cheap, easier maintenance, more server varieties and maybe, faster transactions.

I assume here that most of us have some understanding of what J2EE is. It is the enterprise platform of JAVA for building applications in various domains. I may add another blog on J2EE later on for further understanding. Let me give a brief overview of the stock trading system though my knowledge about it is very limited. It is a complex system and I can only cover the core and basic components.

There are two main data categories in a stock trading system - data about the securities and the brokers. Brokers have access to buy, sell trade orders of different securities. The security data is stored in a Security Master and brokers' data is stored in a Trade Master. When a broker places a trade order for a particular security, the system should validate the order and then do a order matching with the information stored in the Security Master. If a match does occur, and without violating the ACID (Atomic Consistent Isolated Durable) properties, the correct number of shares are bought or sold by that broker and the data is updated in those tables in the database. This is one of the basic transactions taking place in a stock trading system. Now imagine thousands of such operations occur every minute. We need a system which should handle such traffic without causing much delays.

The project involves a 3-tier architecture. A front-end, middleware and a backend. Backend consists of a database and front-end involves Swing applications or JSP based interface for the brokers to place orders. Middleware would be where the business logic would lie. One of the core components of the business logic is order matching. It needs to be done really quick otherwise it can become the bottleneck. After working for a couple of months, I came out with a dynamic data structure using core JAVA which can handle order matching. Our goal was to handle 100 requests per second and the data structure was giving me that performance. In fact, the performance of this data structure was tested and proved to be better than the one that was created using JAVA's own TreeMap data structure.

Entity Beans are needed for maintaining the Security Master and Trade Master. They need to be mapped with the respective tables in the database. Session beans can handle the authentication of the user, validation of requests, buy and sell trade order processing and broadcast data generation. Broadcasting the data is like a ticker that shows the latest status of each security on every frontend. The front-end module posts a request to servlets/JSP pages, which in turn call the Session Beans. A queueing mechanism like MQ Series can be used to create message queues to constantly sent data to the Broadcast server, which in turn takes care of the broadcast of the trading details.

So, what can the stock exchange achieve from this system? An increase in growth of users, handle heavy trading activity with less delays, deliver responses to users within a few seconds and a huge reduction of infrastructure costs.

13 Comments:

At 10:37 PM, Anonymous Anonymous said...

Wow! What a cool project!

 
At 8:14 PM, Anonymous Anonymous said...

Rietti Radio-controlled Scale Formula Racing Car
You know you've got a fast remote control car when all you can see is a blur as it goes by. But don't let the price fool you.

Rietti's original plan was to set out designing a remote control car capable of bringing high performance for under $100. We'd say they more than accomplished the task.

The Formula 1 style racing wings aren't just for looks. Just like on real racing cars they're the only reason the Rietti stays on the ground at high speeds.

The handgrip style radio control with steering wheel offers incredible control and... ps2 game review

 
At 11:31 AM, Blogger Unknown said...

You have good content on your blog keep up the good work

 
At 4:27 PM, Anonymous Anonymous said...

I thought your blog visitors would like to see this currency trading seminar website:
currency trading seminar

 
At 5:09 PM, Anonymous Anonymous said...

Hello,like your site, check out some of these.

Mobile store
http://phone-ringtones.mobilostore.com/
http://fone69.mobilostore.com/
http://cell-ringtones.mobilostore.com/
http://cell-mobile-phone-ringtones.mobilostore.com/
http://mobile-cell-phone-ringtones.mobilostore.com/

Sexy
http://fone69.hot-cell.com
http://phone-ringtones.hot-cell.com
http://cell-ringtones.hot-cell.com
http://cell-mobile-phone-ringtones.hot-cell.com
http://mobile-cell-phone-ringtones.hot-cell.com

Java Games
http://fone69.play-mobilegame.com/
http://phone-ringtones.play-mobilegame.com/
http://cell-ringtones.play-mobilegame.com/
http://cell-mobile-phone-ringtones.play-mobilegame.com/
http://mobile-cell-phone-ringtones.play-mobilegame.com/

Ringtones
http://fone69.directringtones.com/index.php
http://phone-ringtones.directringtones.com/0-000/au_en/home/index.html
http://cell-ringtones.directringtones.com/index.php
http://cell-mobile-phone-ringtones.directringtones.com/index.php
http://mobile-cell-phone-ringtones.directringtones.com/index.php

Vim pass
http://fone69.vimpass.com/
http://phone-ringtones.vimpass.com/
http://cell-ringtones.vimpass.com/
http://cell-mobile-phone-ringtones.vimpass.com/
http://mobile-cell-phone-ringtones.vimpass.com/
gsm mobile phone store surinamegsm mobile phone store surinamegsm mobile phone store surinamegsm mobile phone store suriname
I hope you like them Cheers for now

 
At 9:43 PM, Anonymous Anonymous said...

Hi,

Just browsing around the net for forex signal and came across your blog. I've been trying to add as much info as I can about forex signal on my site. But must admit I get a bit confused... there's just some many sites, tips, information ... you name about forex signal it's hard to know where to begin!
I'm thinking of adding a forex signal on my site, when I do, your all more that welcome to come a leave tips and help...

Until then take care!
Steward.

 
At 2:36 AM, Anonymous Anonymous said...

As many links as you want!

 
At 1:49 AM, Anonymous Anonymous said...

Hi, Vipul.I was just searching blogs,and I found your site! I like it!
If you have a moment, please visit my site:
Business Rule
It covers Business Rule related stuff.
All the best!

 
At 6:17 AM, Anonymous Anonymous said...

Hello Vipul! I just came across your blog and wanted to
drop you a note telling you how impressed I was with
the information you have posted here.

I also have a web site & blog about Business Logic so I know I'm talking
about when I say yours is top-notch! Keep up the
great work, you are providing a great resource on the Internet here!

If you have a moment, please visit my site Business Logic

Best success!

 
At 4:33 AM, Anonymous Anonymous said...

Vipul, This site came up when I was doing my research on voip marketing. Even though my search for voip marketing information to support A Stock Trading System may not end here, your site provides valuable content will certainly will perpetuate. Thanks for the read.

 
At 9:58 AM, Anonymous Anonymous said...

voip marketing was the subject I was researching when I came across your site, Vipul. General interest and popularity of the subject A Stock Trading System has lead me to your site as well as to voip marketing. Yours is a fine site providing a real service and exceptional content. Thanks for reading my comment

 
At 7:33 PM, Anonymous Anonymous said...

voip voice message was the subject I was researching when I came across your site, Vipul. General interest and popularity of the subject A Stock Trading System has lead me to your site as well as to voip voice message . Yours is a fine site providing a real service and exceptional content. Thanks for reading my comment

 
At 1:30 AM, Anonymous Anonymous said...

WOW! What a great site you have here, Vipul. I found is from my search for telemarketing. In my opinion., is a cut above the others. Even though my research regarding A Stock Trading System lead me here but match is not exact for A Stock Trading System, the content is very beneficial and rewarding. Thank you for reading my comment here.

 

Post a Comment

<< Home