kaldor has asked for the wisdom of the Perl Monks concerning the following question:
Hello, this is my first question...
I'd like to write a small multi-user text application accessible by different interfaces (web, terminal, ssh and maybe others). The typical scenario is a few hundreds total users, with a dozen users connected at the same time.
I have the following prototype working : SQLite + DBI + Dancer2 web app running as FastCGI (on mac/linux). Now I wonder how to add CLI interfaces without duplicating code and logic... As fas as I understand, the SQLite "file" can be accessed safely by different processes.
Should I just write a basic CLI that accesses the DB directly and use xinetd? Or do I have to write a backend that accesses the DB and executes the logic for UI-only clients?
Suggestions and advice are welcome. Thank you.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Multiuser app with SQLite, Dancer2 and CLI
by Discipulus (Canon) on Dec 04, 2018 at 21:56 UTC | |
by Anonymous Monk on Dec 07, 2018 at 15:21 UTC | |
by kaldor (Beadle) on Apr 03, 2019 at 19:23 UTC | |
Re: Multiuser app with SQLite, Dancer2 and CLI
by 1nickt (Canon) on Dec 04, 2018 at 23:15 UTC | |
Re: Multiuser app with SQLite, Dancer2 and CLI
by afoken (Chancellor) on Dec 06, 2018 at 20:15 UTC | |
Re: Multiuser app with SQLite, Dancer2 and CLI
by thechartist (Monk) on Dec 07, 2018 at 04:45 UTC | |
Re: Multiuser app with SQLite, Dancer2 and CLI
by Anonymous Monk on Dec 05, 2018 at 15:13 UTC | |
by bliako (Monsignor) on Dec 05, 2018 at 16:04 UTC | |
by markong (Pilgrim) on Dec 05, 2018 at 22:27 UTC |