Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MongoDB driver#5164

Answeredbytwose
ermya asked this question inQ&A
Oct 11, 2023· 1 comments· 1 reply
Discussion options

Hello
Is there a way to communicate asynchronously with MongoDB?
Is it possible to hook the MongoDB PHP driver and use it asynchronously?
Is there a connection pool for MongoDB?

You must be logged in to vote
Answered by twoseOct 11, 2023

The MongoDB official favors multi-threading mode, so there is no support for multiplexing, which is one reason.
The MySQL clients in PHP such as PDO_mysql, mysqli, etc. are based on the mysqlnd driver developed by PHP itself. mysqlnd is based on php_stream, which provides a good abstraction for socket operations, hence it can be easily hooked.

I’d highly encourage to cast your votes on the MongoDB Feedback Forum for this request -Asynchronous variant of MongoDB C Driver – MongoDB Feedback Engine .

https://www.mongodb.com/community/forums/t/why-not-supply-async-api-in-mongo-c-driver/16260

Replies: 1 comment 1 reply

Comment options

The MongoDB official favors multi-threading mode, so there is no support for multiplexing, which is one reason.
The MySQL clients in PHP such as PDO_mysql, mysqli, etc. are based on the mysqlnd driver developed by PHP itself. mysqlnd is based on php_stream, which provides a good abstraction for socket operations, hence it can be easily hooked.

I’d highly encourage to cast your votes on the MongoDB Feedback Forum for this request -Asynchronous variant of MongoDB C Driver – MongoDB Feedback Engine .

https://www.mongodb.com/community/forums/t/why-not-supply-async-api-in-mongo-c-driver/16260

You must be logged in to vote
1 reply
@rbro
Comment options

I recently found this:

https://www.mongodb.com/docs/languages/c/c-driver/current/async-c-driver/

Once this is out of preview, would this allow calls to MongoDB from swoole?

Answer selected byleocavalcante
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@ermya@rbro@twose

[8]ページ先頭

©2009-2025 Movatter.jp