[GODRIVER-66] Implement unacknowledged writes with async goroutines Created: 16/Aug/17  Updated: 28/Oct/23  Resolved: 21/Nov/17

Status: Closed
Project: Go Driver
Component/s: CRUD
Affects Version/s: None
Fix Version/s: 0.0.1

Type: New Feature Priority: Major - P3
Reporter: David Golden Assignee: Samuel Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: GODRIVER Core Specs

 Description   

Updated:

In order to emulate legacy opcode latency with unacknowledged writes, the driver needs to process the database reply asynchronously in a goroutine before returning the connection to the pool.

Originally:

Traditionally, drivers have continued to implement w:0 writes with legacy opcodes to avoid performance regressions. We could skip doing so (as we'd have no previous performance to regress from) and avoid implementing legacy op codes completely which will be unneeded once OP_MSG supports fire and forget writes in 3.8.



 Comments   
Comment by Githook User [ 27/Nov/17 ]

Author:

{'name': 'Saghm Rossi', 'username': 'saghm', 'email': 'saghmrossi@gmail.com'}

Message: GODRIVER-66 Implement unacknowledged writes with async goroutines
Branch: GODRIVER-33
https://github.com/10gen/mongo-go-driver/commit/dc348e2118601a6c24c76cd205c41f79fee05f41

Comment by Githook User [ 21/Nov/17 ]

Author:

{'name': 'Saghm Rossi', 'username': 'saghm', 'email': 'saghmrossi@gmail.com'}

Message: GODRIVER-66 Implement unacknowledged writes with async goroutines
Branch: master
https://github.com/10gen/mongo-go-driver/commit/089052fb1706ed6771bd51e409c766b3fb67f3cc

Comment by Craig Wilson [ 23/Aug/17 ]

Unacknowledged writes can be implemented with goroutines very easily. I think you should skip implementing legacy opcodes altogether.

Comment by Christopher Hendel [ 17/Aug/17 ]

I think we could skip legacy op codes. They are already scheduled for deprecation/removal here.

Generated at Thu Feb 08 08:33:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.