[SERVER-71258] Extend stitch_support library to support aggregation API Created: 10/Nov/22  Updated: 27/Jul/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Nathan Frank Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Query Integration
Sprint: QE 2023-05-15, QE 2023-05-29, QE 2023-06-12, QE 2023-06-26, QE 2023-07-10, QE 2023-07-24
Participants:

 Description   

Currently, Atlas App Services (formerly Stitch) builds a library libmongo.so (for our linux envs) and assisted_agg (mainly exists for intel macOS) from the 4.4 server branch to accomplish to limit stages and apply rule expressions and filters to Atlas App Services Function Users.

The API we utilize is captured in stub.cpp

We extend the MongoProcessInterface found in baas_mongo_process_interface.h and utilize some utils.

Additional files include:
aggregate.cpp
aggregate.h
document_source_stitch.cpp
document_source_stitch.h
main.cpp
utils.h

In order to build the binaries we append code to the Sconscript in src/mongo/SConscript. Then call the build script while including all the cpp files we have on our side.

In order to maintain a healthier build process as this is in frequently updated or touched, this API should be exposed to the existing stitch_support library (reducing the number of needed binaries from 2 down to 1), with server producing it for Atlas App Services.



 Comments   
Comment by Kyle Suarez [ 27/Jul/23 ]

I've linked the notes taken when discussing this issue with tim.sedgwick@mongodb.com, andrea.rahmanan@mongodb.com and arun.banala@mongodb.com. Moving this ticket to the Query Integrations backlog pending further discussion.

Comment by Nathan Frank [ 17/Nov/22 ]

kyle.suarez@mongodb.com let me know if that was enough detail to proceed, otherwise I can help organize a meeting to sync.

Comment by Nathan Frank [ 15/Nov/22 ]

kyle.suarez@mongodb.com, apologies for my confusion, but maybe this is clarifying. The Atlas App Services team depends on the stitch_support lib and it is fundamental to our features. (It also depends on the libmongo.so/assisted_agg which are also fundamental, but could be contained into the stitch_support lib)

Comment by Kyle Suarez [ 15/Nov/22 ]

nathan.frank@mongodb.com, it would be good for Query to understand how much Atlas App Services relies on the stitch lib so we can appropriately prioritize this – could we have a quick meeting to sync with folks on the Atlas side?

Generated at Thu Feb 08 06:18:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.