-
I'm building a Theia extension that stores executed code results in SQLite or NeDB and displays them in the IDE. How should data be communicated between these components? Should the extension spawn a subprocess to manage saving results (listen results and save into the database), or can the backend contribution provide a REST API or Websocket endpoints for the code to send data upon execution? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @woung717, I guess it depends? Generally, it's possible to send the data to the backend first and then let the backend handle everything. See our documentation on RPC. Having a REST API could be possible as well though, depending on whether you prefer building microservices, etc. The RPC solution would probably be recommended if you don't intend on reusing the database access. |
Beta Was this translation helpful? Give feedback.
Hey @woung717,
I guess it depends? Generally, it's possible to send the data to the backend first and then let the backend handle everything. See our documentation on RPC. Having a REST API could be possible as well though, depending on whether you prefer building microservices, etc. The RPC solution would probably be recommended if you don't intend on reusing the database access.