Is there any recommendation on what should be used to connect to Atlas from .NET, Java etc?
As per the documentation on Atlas, the data API is a managed middleware layer which would sit between my app and the database. This seems like additional overhead and may add to the response time (to the browser/mobile) for my application.
Any thoughts on this?
Your intuition is spot on. If you’re building a server-side application on .NET or Java then you should use the MongoDB C# (
https://www.mongodb.com/docs/drivers/csharp/) and Java ( https://www.mongodb.com/docs/drivers/java-drivers/) drivers respectively to do so. Building your own server-side backend maximizes for flexibility and allows you to optimize for performance.
The Atlas App Services capabilities offer a customizable managed API tier which is essentially an alternative to building your own server-side backend. The Data API (
https://www.mongodb.com/docs/atlas/app-services/data-api/generated-endpoints/) offers a specific set of data plane methods whereas Custom HTTPS Endpoints ( https://www.mongodb.com/docs/atlas/app-services/data-api/custom-endpoints/) and the GraphQL option ( https://www.mongodb.com/docs/atlas/app-services/graphql/) allow you to define custom business logic).
February 1, 2023, 7:24pm
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.