ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm about to start coding client/server app (max. 200 clients). I know what to do, but have some doubts, so I've came here to ask fellow programmers what would they do...
Servers will have huge databases, and clients will query approx once a second. Failure should not happen, not even for a second! What would you do? RPC, XML-RPC, -lmysqlclient,...?
If all goes well, you'll be reading all about it in LQ Members Success Stories section
PS. Anybody had experience with barcode readers in GNU/Linux?
Heh, judging by some of the guidelines: 1 query per second (without failure), and barcode scanning, I would think this might be an application for a POS (Point Of Sales) setup.
you wind up wrapping 8 bytes of data in 500 bytes of envelope!
MS style computing ;-)
depends what sort of queries i guess, if you have a known subset.
security issues?
Yeah, something like SOAP, that would be.
I have a known subset for query/response (pretty limited one). Security is not the issue, network will be completely isolated.
Quote:
Originally Posted by indienick
Heh, judging by some of the guidelines: 1 query per second (without failure), and barcode scanning, I would think this might be an application for a POS (Point Of Sales) setup.
Why don't you check out Erlang ?? It was designed to do just what your thinking about.
Its mnesia DB is designed to be failsafe and distributed across thousands of clients. It looks after itself in as much if one client 'fails', the others do not and the database is not corrupted. You can program against mnesia with other languages but as its also written in erlang there is no language <=> dB impendence, its not ODBC however ( if thats an issue for you)
However, be warned ! , Erlang is not your 'usual'
language. Perl/php/C/VB etc its not !!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.