Python, SQLite and threading

前端 未结 6 1459
半阙折子戏
半阙折子戏 2020-12-29 00:03

I\'m working on an application that will gather data through HTTP from several places, cache the data locally and then serve it through HTTP.

So I was looking at the

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 00:55

    Depending on the application the DB could be a real overhead. If we are talking about volatile data, maybe you could skip the communication via DB completely and share the data between the data gathering process and the data serving process(es) via IPC. This is not an option if the data has to be persisted, of course.

提交回复
热议问题