This is the implementation idea for exposing our query endpoint#1
Open
sudhamhebbarbrown wants to merge 1 commit into
Open
This is the implementation idea for exposing our query endpoint#1sudhamhebbarbrown wants to merge 1 commit into
sudhamhebbarbrown wants to merge 1 commit into
Conversation
group.js: I had to make it let cuz distribution object was not available yet. But it will be available when the function is called. Node.js: We have a startup function already. During the startup phase, we have to put the crawler group. We also have additional work to do. Like running the actual crawler and running the indexer. Query.js: The new endpoint that will be exposed. We can call this endpoint like awsIP:awsPORT/query/get with the query passed as an object. This will execute the query subsystem. ADDITIONAL WORK: 1. We have to think about how we will spawn the rest of the nodes. 2. We also have to define serialization and deserializion libraries in the frontend. 3. We have to run the crawler and indexer workflow during startup. 4. We can also have a hashmap to return the values since our function is idempotent. LET ME KNOW IF THIS SEEMS LIKE A GOOD IMPLEMENTATION OR IF ANYTHING NEEDS TO BE CHANGED
Owner
|
"spawn the rest of the nodes": I think we can start each node in an EC instance so that they can be communicated with. Use a all.put with the config we manually set (e.g. the ip and port of the other nodes) "We have to run the crawler and indexer workflow during startup.": yes, or we can even run them separately. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
group.js: I had to make it let cuz distribution object was not available yet. But it will be available when the function is called.
Node.js: We have a startup function already. During the startup phase, we have to put the crawler group. We also have additional work to do. Like running the actual crawler and running the indexer.
Query.js: The new endpoint that will be exposed. We can call this endpoint like awsIP:awsPORT/query/get with the query passed as an object. This will execute the query subsystem.
ADDITIONAL WORK:
LET ME KNOW IF THIS SEEMS LIKE A GOOD IMPLEMENTATION OR IF ANYTHING NEEDS TO BE CHANGED