[JAVA-4936] Switch to polling monitoring when running within a FaaS environment Created: 12/Apr/23  Updated: 05/Feb/24

Status: Backlog
Project: Java Driver
Component/s: Cluster Management, FaaS
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: PM Bot Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2578 Switch to polling monitoring when run... Implementing
Quarter: FY24Q4
Upstream Changes Summary:

DRIVERS-2578:
In this change drivers will:

  • Disable streaming SDAM by default on AWS Lambda and similar FaaS platforms.
  • Introduce the serverMonitoringMode=stream/poll/auto URI option.
  • Add Unified Test Format version 1.17 to add support for server heartbeat events and asserting on the "awaited" field.
  • Ensure that clients MUST NOT use dedicated connections to measure RTT when using the polling protocol.

See the spec changes in: https://github.com/mongodb/specifications/commit/14a6c8134d0c3038cdaa34bb33bcebbb3a545ca8
And the Python implementation: https://github.com/mongodb/mongo-python-driver/commit/4c00227c1d350a64d1af6672cb6de26072082b81

Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

This ticket was split from DRIVERS-2578, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 26/Jan/24 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Refactor FaaS support in ClientMetadataHelper (#1300)

Move FaasEnvironment enum and related static methods to a
top-level class, in preparation for use in DefaultServerMonitor.

JAVA-4936
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/cb6692fdea4e231b51fd9ec3c7c9380f9eb84f45

Generated at Thu Feb 08 09:03:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.