4 ms·
504: GATEWAY_TIMEOUT Code: FUNCTION_INVOCATION_TIMEOUT If the data changes irregularly, you’re probably better off making it a static site and having a scrip
by Tijdreiziger 3y ago
504: GATEWAY_TIMEOUT
Code: FUNCTION_INVOCATION_TIMEOUT
If the data changes irregularly, you’re probably better off making it a static site and having a script update it periodically, also to avoid excessive cloud charges (since you seem to be hosting this on Vercel).
- deleted 3y ago[deleted]
- anonyonoor 3y agoVercel hosts the front-end, but the back-end is whats down right now. I thought I could rely on my Always Free Oracle cloud instance but I guess not. The problem with making a static site is that there are over 800,000 SEC filers, so it would be impossible to query all of them and store it. I hadn't expected so much traffic, so I really have no clue how to handle this without excessive cloud charges. The best I've done so far is to look into free hosting for open-source projeccts and add a donation link to the homepage.
- password4321 3y agoYou can query a SQLite DB entirely client side over HTTP: https://github.com/proofrock/ws4sqlite https://github.com/proofrock/ws4sqlite The pre-processed data would have to be served from somewhere though. I'm not sure if GitHub could be used to host. If not, Scaleway Stardust includes a bit of disk, 75GB free S3-compatible storage, and most importantly: free 100mbps outbound data transfer for < $4/month. There are probably other cheap shared web hosts that claim unlimited data transfer but not sure they'll deliver.