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

backend revamp #1

Closed
wants to merge 73 commits into from
Closed

backend revamp #1

wants to merge 73 commits into from

Conversation

617a7aa
Copy link

@617a7aa 617a7aa commented May 9, 2021

created api project and scheduled-send-manyproject.
both are CF workers which will replace the current backend.
api is the HTTP API for frontend
scheduled-send-many is a scheduled worker which will run every 2 minutes and can send up to 100 airdrops per minute

this will initially be able to send up to 1000 airdrops every 10 minutes, an improvement of 40x, but is able to be expanded to 2000 every 10 minutes (80x)

Copy link
Contributor

@314159265359879 314159265359879 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For as far as I understand this, it looks good to me. Lets stress test this again with an at Everyone in discord when it is live?
Maybe @cryptopanter can do an actual code review if that is needed?

@314159265359879
Copy link
Contributor

Deploying with Cloudflare Pages Cloudflare Pages

Latest commit: 048629b
Status: ✅ Deploy successful!
Preview URL: https://5100cd27.nothing.pages.dev

View logs

Should I be able to use this faucet? or not yet connected?
I get the "try again later" error.

@617a7aa
Copy link
Author

617a7aa commented May 9, 2021

thank you @314159265359879 for your review. this PR is still a draft and is not ready for deployment yet. the faucet preview website deployment hasn't been changed so it should still work if the main one does.

frontend hasn't been updated to use the new backend because backend is still failing tests. will connect frontend up when the backend works lol

@617a7aa
Copy link
Author

617a7aa commented May 10, 2021

this PR is inactive for now. it requires a library which is in the works, but not fully live yet. using the @stacks/* libraries in a worker is really tough.

i'm having issues with them compiling to unsafe evals which workers won't allow in the runtime. waiting for the lightweight esm-based library from @aulneau for this to happen.

for the meantime, we could potentially start work on the frontend UI but that will require @syvita/design to do some mockups - we're currently working on daoOS primarily, so this may get postponed for a while.

@617a7aa
Copy link
Author

617a7aa commented May 11, 2021

image

@cryptopanter
Copy link
Member

this PR is inactive for now. it requires a library which is in the works, but not fully live yet. using the @stacks/* libraries in a worker is really tough.

i'm having issues with them compiling to unsafe evals which workers won't allow in the runtime. waiting for the lightweight esm-based library from @aulneau for this to happen.

for the meantime, we could potentially start work on the frontend UI but that will require @syvita/design to do some mockups - we're currently working on daoOS primarily, so this may get postponed for a while.

What's wrong with Stacks library?... And let me know when it's ready for test 🎩... Btw, should Huzz also join this repo?

@617a7aa
Copy link
Author

617a7aa commented May 14, 2021

What's wrong with Stacks library?

it's not designed for something as locked down as a webworker. their runtimes are significantly different from other runtimes that the stacks libraries are used for (websites, node etc)

Btw, should Huzz also join this repo?

he can if he wants to work on it!

@617a7aa 617a7aa added this to On hold in Nothing token phase-1 May 20, 2021
@617a7aa 617a7aa closed this Jan 31, 2022
Nothing token phase-1 automation moved this from On hold to Done Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

None yet

3 participants