AccelerationConsortium / ac-microcourses

Microcourses hosted by the Acceleration Consortium for self-driving lab topics.
https://ac-microcourses.readthedocs.io/
MIT License
19 stars 3 forks source link

Deprecation of MongoDB Data API #45

Open linx5o opened 6 days ago

linx5o commented 6 days ago

The Data API has been deprecated and new users cannot access it anymore. image

sgbaird commented 6 days ago

Thanks for bringing this to my attention! I will need to find a suitable alternative. This primarily affects Modules 1, 5, and 6. Without the implementation, full points can't be achieved on these, and it prevents the module 5 tutorial from being completed as well.

The end-of-life is September 30, 2025, but as you mentioned it looks like new users can't enable it. Some related resources:

Specifically, AWS lambda is one of the suggested alternatives, and it has a generous cloud-hosted free-tier. I have prior experience with this, and it's part of the software dev. course topics. The question is how important is it to retain the ability to log directly from a Pico W to MongoDB, and how this affects the assignment structure, etc.

HiveMQ has a MongoDB integration, but this is only for paid-tiers, which can be somewhat expensive. NODE-RED integration with MongoDB is another option, but is equivalent to the AWS lambda implementation in that sense.

Related to this, it may be time to update the module 1 tutorial with a new video and inline instructions for device setup (or porting the manuscript/setup instructions to self-driving-lab-demo). Technically, the manuscript could be updated as well.

xref: data and access management discussion category within self-driving-lab-demo

There's a package called nmongo which seems to be a MicroPython driver, but this only works for a rather old version of MongoDB (3.*).

EDIT: I found this https://www.reddit.com/r/mongodb/comments/1fcsemu/mongodb_realm_deprecation/. AWS might have an issue with connecting to MongoDB. Perhaps https://docs.neurelo.com/guides/mongodb-atlas-migrate-rest-data-apis-to-neurelo or https://devblogs.microsoft.com/cosmosdb/introducing-the-data-api-preview-in-vcore-based-azure-cosmos-db-for-mongodb/ could work, but I'm not sure about the pricing.