LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Cross platform client/server + web? (http://www.linuxquestions.org/questions/programming-9/cross-platform-client-server-web-225424/)

JLindenmuth 09-01-2004 06:26 PM

Cross platform client/server + web?
 
My company is about to embark on a long term development effort (2 years) to create a new client/server + web application. Since a few hundred clients are using our existing Microsoft VC++ front-end, we need to maintain a thick-client Microsoft GUI application. However, I'd like to develop much of the new business logic to be cross-platform. This way we could port the server side code to Linux when we rollout a web-based version of the software.

So here's my 2 questions (we're traditionally a Microsoft shop, but prefer to migrate all in-house servers to Linux, so excuse my ignorance):

1. Given that we must use Microsoft for our client, what language and middleware would best enable us to utilize the same server-side code on both Linux and Windows?

2. Can we get php/apache to interface with our database using the cross-platform server code we developed for our Microsoft application? Would we use CORBA/COM/OTHER?

Thanks in advance,

Mara 09-02-2004 05:18 PM

It depends what should the server do. If it's possible to write it in something like PHP or Python, great. Will work on both Linux and Windows. If it's a 'standard' shop+database, go for Apache+MySQL( or PostgreSQL if you need more advanced stored procedures etc, but AFAIK Postgres doesn't have a Windows version, so database server should be separate if you choose it)+PHP.

The server may also run a kind of wrapper translating requests from front-ends (but it depends on the front-end, if it can be modified to work as a web browser, it should be the way to go).

PHP has commands to connect, issue commands etc to the database. No extra layer is added. But if the database is custom it's possible to write an Apache module that will handle the database.

JLindenmuth 09-03-2004 07:36 AM

We're planning on using PostgreSQL for the database (particularly since v8 has a win32 port), but I'm not sure what to do for the application layer (e.g. middleware/business logic). We are planning to write this all in standard C++ to enable cross platform capabilities when we decide to go with the web. I'm not sure what our options for getting this C/C++ code running as the application layer in Linux between the web and database layers. Would we use CORBA or COM, or something else? Does anyone have experience with a 3-tiered architecture where the application layer was compiled for multiple platforms?

Thanks,

Mara 09-03-2004 03:56 PM

Well, you can use C/C++ program as one of the layers and it's even possible to write it in such a way that it compiles on both platforms. But it must be strict ANSI then.
It may also use Corba. I'd recommend to make a project of your application (libraries to do which tasks you need) and then try to find cross-platform ones. You'll be able to find them, IMHO.


All times are GMT -5. The time now is 05:20 AM.