Hi, I want to build bunch of components like web apps etc on Predix machine. My questions are: 1) How would I know if I can deploy a specific component on predix machine or not? 2) I want to store data coming from various custom adapters in Mongo DB at Predix Machine level. I need this data in predix machine because later my components will be using this data. If Mongo Db is not supported then what are my options for data storage at predix machine.
Any suggestions/directions/documentation will be helpful.
Thanks Ritesh
Answer by Greg Stroup · Aug 30, 2016 at 09:19 AM
Mongo DB is not available through Predix right now. Predix offers Time Series, Asset, Postgres, BLOB store, and other services. See the catalog here:
https://www.predix.io/catalog/services/
"Predix Machine" is a container that runs on your edge device, near your sensors. You don't really install web apps there. Your web apps would be hosted in the Predix Cloud, and communicate with your machines in the field.
Check out our tutorials, such as Build a Basic Application.
Hi @Greg Stroup, Thanks. I know that Predix doesn't support Mongo DB OOTB but can I still install Mondo DB's instance explicitly on cloud and use it? Also, Since Predix machine is built on OSGI framework and, I guess there is an OSGI bundle for MongoDB too, so I should be able to avail MongoDb service at predix machine as well. Same goes for other java components and webapps, each can be built as bundle and deployed on OSGI (at predix machine.)
Please let me know your thoughts on my understanding.
Thanks Ritesh
I don't know if you could install Mongo DB into the Predix cloud. I haven't heard of anyone doing that. Your app could potentially connect to a Mongo DB instance out on some other cloud.
I also don't know if there is a Mongo DB OSGI bundle... would this be a client that would connect to a Mongo DB instance in the cloud? That could work... you can basically take any OSGI bundle and deploy it into the Predix Machine container.
Hope this helps.
You can certainly use the MongoDB drivers in an OSGI environment. Don't think you can install MongoDB in the Predix cloud, however you can probably have your app (whether it be running localhost or in the cloud) connect to a MongoDB cloud instance (which is not in the Predix cloud). Take a look at MongoDB Atlas - https://www.mongodb.com/cloud