oysterprotocol / brokernode

Server that connects to the Tangle to enable the Oyster Protocol
36 stars 9 forks source link

[Broker] Endpoint that will receive chunks and store in a chunk store #618

Open AaronVasquez opened 5 years ago

AaronVasquez commented 5 years ago

New endpoint to handle chunk uploads

AaronVasquez commented 5 years ago

@EdmundMai @pzhao5 Not sure if we still need an additional endpoint for this since all of these changes are broker side, with nothing changing on the client.

If we want to turn off the feature, we can change the ENV variable on the broker. It shouldn't be client dependent too.

pzhao5 commented 5 years ago

Are you referring to S3 change? Because I am expecting the client to call api/v3/upload-session. Does client dynamic fallback to api/v2/upload-session?

AaronVasquez commented 5 years ago

I don't think /v3 is necessary anymore since we won't have any client side changes. This will be easier for us to turn off the feature without relying on client side changes to also propagate.

The /v2 endpoint will transparently use badger or s3, depending on the feature flag