Directional Advice Sockets, Server?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
cph
Posts: 2
Joined: Mon Mar 05, 2012 11:12 pm

Directional Advice Sockets, Server?

Post by cph » Tue Mar 06, 2012 12:02 am

I'm new to livecode and I guess the compelling reason to use it for development is livecode's cross platform capabilities as well as the speed of development.

We have an immediate need to develop a business application which will evolve over time to many modules. We currently use postgres for extensive reporting using Birt so have experience and a preference for postgres. Essentially we want to develop a desktop app accessing our postgress db on a linux server.

Having spent hours reading through the options like using sockets or using the livecode server etc I still really don't know the best option. The application we will develop could potentially have over 200 users with 50% concurrently processing transactional data on the db during peak times.

I'm sure there are some very smart livecode developers out there who can point us in the right direction.

Thanks in anticipation of your help.

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Directional Advice Sockets, Server?

Post by bangkok » Tue Mar 06, 2012 2:18 pm

app clients and the linux server are on the same local network ?

if yes :
-no need socket. the app clients can connect directly to the postgresql server. Livecode has a driver for postgresql.
However, with a MS SQL server then the socket server is an interesting solution, because no need to set up an odbc DSN on each client PC. easier and more secure.

if no :
-no need socket. use instead a livecode server, installed on your linux server, that will receive queries through web queries (POST) and forward them to the postgresql server.

cph
Posts: 2
Joined: Mon Mar 05, 2012 11:12 pm

Re: Directional Advice Sockets, Server?

Post by cph » Tue Mar 06, 2012 7:51 pm

Thanks bangkok, the app clients will be on a different network so we will pursue the livecode server option. Appreciate your advice.

Regards, Chris

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Directional Advice Sockets, Server?

Post by mwieder » Tue Mar 06, 2012 8:05 pm

Chris-

It *is* possible to do this without the liveserver component by putting together a small stack the uses talks to the postgres database and sockets to communicate with the client apps, or by setting up web services on the server, but probably going the liveserver route is a better route for what you have in mind.

Post Reply