ronthekiehn / twitter-aura2

Auralized clone
https://twitter-aura2.vercel.app
28 stars 4 forks source link

SWITCH OFF OF VERCEL #15

Open chii0815 opened 1 week ago

chii0815 commented 1 week ago

Hey, as you wrote in Readme.md contributions guide tbd, it's hard to test because of vercel and i don't want to upgrade to the paid plan. There is some test 'data' in there (aka my profile) for UI changes. database-wise idk how to set up lol I suggest, that you use OCI (Oracle Cloud Infrastructure). They have a "Always free" tier: Oracle OCI Info

`Arm Compute Instance

Arm-based Ampere A1 cores and 24 GB of memory usable as 1 VM or up to 4 VMs

Always Free 3,000 OCPU hours and 18,000 GB hours per month`

3,000 OCPU hours are equal to anything between 1 VM with 4 Cores or 4 VMs with 1 Core. You will also get 200GB Block Storage and 5 Backups per Volume included in "Always free"

Always Free Resources So you can have a production vm, a testing vm and a database vm if you want to split it. It's also possible to create one vm and use docker or k8 on this.

ronthekiehn commented 1 week ago

Honestly this seems good - this guy suggested digital ocean too, tho the oracle free tier seems really huge https://x.com/moikapy_/status/1845819849303376249

tbh I think I need to move off of vercel both because it's expensive and because it's hard to collaborate on it. How easy is it to collaborate on oracle cloud? Also, could we use oracle as the database too? or should we stick on MongoDB? Also, would oractly be used for hosting or just for backend? I could also host the frontend here on github tbh, was thinking of buying a domain anyway.

gonna rename this issue too, probably the biggest change we should make long term. Would love some help refactoring to move to a VM (I haven't really worked with them much).

If I have time I will try to get this switch done this week.

heyimjonas commented 6 days ago

just fyi from my own experience oracle free tiers are not always available, but there are scripts that check it for you. I have it saved on my pc and can send it later

chii0815 commented 5 days ago

just fyi from my own experience oracle free tiers are not always available, but there are scripts that check it for you. I have it saved on my pc and can send it later

Yea OCI in free Tier will take the Server down when you are not using it. It is explained: `Important

Reclamation of Idle Compute Instances

Idle Always Free compute instances may be reclaimed by Oracle. Oracle will deem virtual machine and bare metal compute instances as idle if, during a 7-day period, the following are true:

CPU utilization for the 95th percentile is less than 20%
Network utilization is less than 20%
Memory utilization is less than 20% (applies to [A1 shapes](https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier_topic-Always_Free_Resources.htm#Details_of_the_Always_Free_Compute_instance__a1_flex) only)`
chii0815 commented 5 days ago

Honestly this seems good - this guy suggested digital ocean too, tho the oracle free tier seems really huge https://x.com/moikapy_/status/1845819849303376249

tbh I think I need to move off of vercel both because it's expensive and because it's hard to collaborate on it. How easy is it to collaborate on oracle cloud? Also, could we use oracle as the database too? or should we stick on MongoDB? Also, would oractly be used for hosting or just for backend? I could also host the frontend here on github tbh, was thinking of buying a domain anyway.

gonna rename this issue too, probably the biggest change we should make long term. Would love some help refactoring to move to a VM (I haven't really worked with them much).

If I have time I will try to get this switch done this week.

Just to answer your questions:

heyimjonas commented 5 days ago

Oracle do not provide the database in the free tier

the always free tier includes NoSQL with 133 million reads and writes per month + 25GB storage per table and 3 tables

chii0815 commented 4 days ago

Oracle do not provide the database in the free tier

the always free tier includes NoSQL with 133 million reads and writes per month + 25GB storage per table and 3 tables

ok nice to know.. didn't use NoSQL normaly. I am a pgsql guy :)