# Using Ruby as a front end for a trading system

**URL:** <https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305>\
**Category:** Rails\
**Created:** [April 6, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305 "2007-04-06T15:03:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohtashim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@mohtashim](https://www.ruby-forum.com/u/mohtashim)\
**Post date:** [April 6, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305/1 "2007-04-06T15:03:14Z")

</div>

Hi All,

needed some direction for a newbie to RoR. I have done work in Java,  
.net and perl, and really prefer perl and java over .net, now we are we  
are looking to start building a financial trading application, most of  
the team wants to go with .net while I am trying to build the case with  
Ruby. Some of our classes have been developed in delphi7. Would I be  
able to use RoR on the front end of this application? and pass the  
information back to say a soap-enabled web services server… so the  
idea is:

ruby on the front --\> web services --\> deplhi classes --\> DB

or should I just do this:

RoR --\> Db

also, is RoR n-tiered? from what i have read so far, it is much like  
PHP…ie 2 tiered unless we do some extra work?

thanks all, appreciate the help!  
Moti

---

<div class="post-metadata">

**Author:** ![mohtashim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@mohtashim](https://www.ruby-forum.com/u/mohtashim)\
**Post date:** [April 6, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305/2 "2007-04-06T21:04:34Z")

</div>

Mohtashim Ahmed wrote:

> Hi All,
> 
> needed some direction for a newbie to RoR. I have done work in Java,  
> .net and perl, and really prefer perl and java over .net, now we are we  
> are looking to start building a financial trading application, most of  
> the team wants to go with .net while I am trying to build the case with  
> Ruby. Some of our classes have been developed in delphi7. Would I be  
> able to use RoR on the front end of this application? and pass the  
> information back to say a soap-enabled web services server… so the  
> idea is:
> 
> ruby on the front --\> web services --\> deplhi classes --\> DB
> 
> or should I just do this:
> 
> RoR --\> Db
> 
> also, is RoR n-tiered? from what i have read so far, it is much like  
> PHP…ie 2 tiered unless we do some extra work?
> 
> thanks all, appreciate the help!  
> Moti

It would be much easy to do it

RoR --\> Db

I don’t know about how to use it with web services 🙂

No, RoR is not the same like PHP, or I had kept myself coding PHP if  
they were 😃

---

<div class="post-metadata">

**Author:** ![mohtashim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@mohtashim](https://www.ruby-forum.com/u/mohtashim)\
**Post date:** [April 6, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305/3 "2007-04-06T22:09:22Z")

</div>

RoR is very simple to set up as n-tiered… it has things built in out  
of  
the box for doing so, and for the few things that can’t be done easily  
with  
out of the box Rails, there are plugins for.

And, yes, it is extremely simple to do what you said with RoR -\> web  
service  
-\> Delphi -\> DB.  
A lot of people at larger companies who can’t afford to go RoR  
wholeheartedly to begin with do it via this step… set up web service  
front  
ends to all of your current code, and put an RoR face on it… then, as  
your  
other developers become more and more familiary with RoR, and as you  
begin  
to see the obvious advantages of using it, you can refactor your code to  
become more of a Ror -\> DB situation.

---

<div class="post-metadata">

**Author:** ![mohtashim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@mohtashim](https://www.ruby-forum.com/u/mohtashim)\
**Post date:** [April 7, 2007, 6:57am UTC](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305/4 "2007-04-07T06:57:08Z")

</div>

Luke I. wrote:

> RoR is very simple to set up as n-tiered… it has things built in out  
> of  
> the box for doing so, and for the few things that can’t be done easily  
> with  
> out of the box Rails, there are plugins for.
> 
> And, yes, it is extremely simple to do what you said with RoR -\> web  
> service  
> -\> Delphi -\> DB.  
> A lot of people at larger companies who can’t afford to go RoR  
> wholeheartedly to begin with do it via this step… set up web service  
> front  
> ends to all of your current code, and put an RoR face on it… then, as  
> your  
> other developers become more and more familiary with RoR, and as you  
> begin  
> to see the obvious advantages of using it, you can refactor your code to  
> become more of a Ror -\> DB situation.

thanks for the help guys… any idea where i can find information on  
making RoR ntiered? but if i make it 3 tiered say, then i cannot use  
activerecord…or can I?  
thanks!  
M

---

<div class="post-metadata">

**Author:** ![mohtashim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@mohtashim](https://www.ruby-forum.com/u/mohtashim)\
**Post date:** [April 9, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305/5 "2007-04-09T17:27:22Z")

</div>

Mohtashim Ahmed wrote:

> thanks for the help guys… any idea where i can find information on  
> making RoR ntiered? but if i make it 3 tiered say, then i cannot use  
> activerecord…or can I?  
> thanks!  
> M

Rails _IS_ n-tiered already. ActiveRecord is the data access layer. The  
model classes you created are the business objects, and the controllers  
and views are the interface (with some cross over into the business  
objects).
