Dreampuf
Dreampuf

Reputation: 1181

Does Berkeley DB only support one processor operation

I use Berkeley DB(BDB) in nginx. When a request arrives, nginx passes the URI as a key to BDB and checks if that key has a value in BDB file.

I actually did in an example. I add some data in BDB, and run nginx, it's OK. I can access it. But when I add some data in running BDB with nginx (using Python), I can't get the new data. Even I use the another python interpreter access the BDB file, it was actually has the new data.

Steps of the request in nginx:

  1. start up nginx, and it will init my plugin (BDB env and init)
  2. a request comes in
  3. control in plugin, check if key(uri) has a value. If true, return it, or pass
  4. ...rest of process

Upvotes: 1

Views: 254

Answers (1)

wag
wag

Reputation: 26

it supports

  • A Single Process With One Thread
  • A Single Process With Multiple Threads
  • Groups of Cooperating Processes
  • Groups of Unrelated Processes

Upvotes: 1

Related Questions