I have few queries related to compute modules as I am exploring how it will fit in for my usecase
-
Do compute modules have first class access to OSDK?
-
Can I write a REST endpoint in compute module for public or external system to consume? It was mentioned in docs that we can connect to external systems from compute modules but not sure on the other way around.
1 Like
Hi @RajKarri,
- Do compute modules have first class access to OSDK?
Could you please expand on what you mean by “first class” access? You are in total control of the container you deploy to a compute module so you should definitely be able to use the OSDK within a compute module.
- Can I write a REST endpoint in compute module for public or external system to consume? It was mentioned in docs that we can connect to external systems from compute modules but not sure on the other way around.
You can talk to your registered functions via api gateway today. The query tab is a more direct proxy, and we’re working on adding that to gateway as well
1 Like
- Does this work like any other application that lives inside Foundry Eco-system? For ex: Workshop can access ontology objects as-is without any additional auth related setup. Looks like compute modules need some kind of token setup. It would be nice if we have some kind of agent that lives inside this module that takes care of auth and other basic setup.
The creator of a compute module is in complete control of the code that is executed within that compute module, which is why you cannot use the OSDK without setting up auth.
The Compute Modules SDK does offer apis to make it easier to set up your auth.
- Is this same for Dev tier as well?
Yes, you can also talk to your registered functions in dev tier
1 Like