Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can meilisearch or server be installed on integritee sidechain #195

Open
amiyatulu opened this issue Oct 8, 2023 · 7 comments
Open

Can meilisearch or server be installed on integritee sidechain #195

amiyatulu opened this issue Oct 8, 2023 · 7 comments
Labels
question Further information is requested

Comments

@amiyatulu
Copy link

amiyatulu commented Oct 8, 2023

Can long running process or server like meilisearch be installed on integritee? Meilisearch is an actix server.

@amiyatulu amiyatulu added the question Further information is requested label Oct 8, 2023
@amiyatulu amiyatulu changed the title Can meilisearch be installed on integritee sidechain Can meilisearch or server be installed on integritee sidechain Oct 8, 2023
@brenzi
Copy link
Collaborator

brenzi commented Oct 9, 2023

I think that may be feasible. You may need to patch these libs to make them build in no_std environments though

Sounds more like a use case for a trusted offchain worker than a sidechain. What would you like to build?

@amiyatulu
Copy link
Author

amiyatulu commented Oct 9, 2023

Why no_std environments is required for offchain computing? Aren't offchain computing non-determinsitic. Yes, I am also looking at how to do with offchain worker, substrate-ipfs is a good example, which I will go through. There are many use cases, like indexing the feeds for search, using a ipfs storage with a database for sql queries, machine learning etc. One won't need an additional centralized server for it.

Offchain workers don't work with std it seems.

@brenzi
Copy link
Collaborator

brenzi commented Oct 9, 2023

with offchain worker I didn't mean substrate ones. I meant ours: https://docs.integritee.network/4-development/4.4-sdk/4.4.2-trusted-off-chain-worker

no_std not strictly necessary. You could use gramine together with out attesteer if you just want a verifiable search service.

However, if you need interaction with L1 blockchains, we recommend using our SDK and use no_std dependencies for it. This has nothing to do with determinism. It's just about the lack of a std environment in SGX enclaves as we build them

@amiyatulu
Copy link
Author

amiyatulu commented Oct 27, 2023

If we install meilisearch on integritee sidechain or offchain worker, wouldn't computation be redundant, that is every node will be running meilisearch? Wouldn't it be inefficient in terms of energy consumption, as we only need 2-5 meilisearch nodes depending on bandwidth of the node and amount of queries. Though meilisearch requires very less memory for running, wouldn't it do the big computation only when api of integritee node is called?

@brenzi
Copy link
Collaborator

brenzi commented Oct 28, 2023

The level of redundancy is for you to steer by either running exactly the number of workers yourself or incentivizing others to reach that number

@brenzi
Copy link
Collaborator

brenzi commented Oct 28, 2023

It may be easier to have a call and discuss your use case and how our tech can be applied best

@amiyatulu
Copy link
Author

The level of redundancy is for you to steer by either running exactly the number of workers yourself or incentivizing others to reach that number

Running a node by myself requires a lot of lifelong maintenance, so it's better to incentivize others and have it run by the community. There are multiple use cases, such as converting PubActivity social media (Mastodon, PeerTube) to blockchain, where nodes are incentivized to run by the community, and they don't have to rely on altruistic donations to scale the system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants