Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Apache-2.4.x has mod_dbd, which can talk to various database back-ends (using precompiled queries for speed) straight out of Apache config-files. This can be used in, for example, <a href="http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewritemap" rel="nofollow">mod_rewrite's rules</a> to alter incoming requests depending on results of the queries.</p> <p>In other words, depending on the details of your application, you may be able to avoid coding altogether.</p> <p>If you do have to write code, however, I'd suggest you first implement the prototype in a language you know best. There is a good chance, it will be "fast enough" -- or that the bulk of the time spent per request will be on the database side making the choice of the language irrelevant.</p> <p>Connecting to a database back-end from C is easy -- each database vendor has (at least one) client-library implementation for C-programs.</p> <p>If your app does not require multiple HTTP-servers to talk to the same (single) database, then your best DB would be a local one: SleepyCat's (now Oracle's) "db", gdbm, or SQLite3. </p> <p>Also, if the updates (changes to the database) are infrequent, you can use flat-files and build the database in memory... This will limit the database's maximum size, but will be the fastest and allow you avoid handling (re)connections, etc.</p> <p>EDIT: memcache is an external database -- whether it is running on the same system or a remote one, you have to <em>connect</em> to it, <em>talk</em> to it, and <em>copy</em> data from its memory into yours. If database-changes aren't frequent, you are better off keeping stuff in your own memory and using it straight from there.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload