Managing multiple Twisted client connections

前端 未结 3 759
说谎
说谎 2021-02-09 17:52

I\'m trying to use Twisted in a sort of spidering program that manages multiple client connections. I\'d like to maintain of a pool of about 5 clients working at one time. The

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-09 18:17

    Since each of your clients needs to update a database, instinctively I think I'd piggyback off the connection pool -- see here for more (the whole doc is recommended for some important design patterns that often emerge when using twisted).

提交回复
热议问题