1
11 Comments

Help! What is the best backend setup AWS or Firebase?

I’m working on a music streaming website like soundcloud/spotify, (Javascript, PhP, MYSQL- so i want to start there & can’t go back now). I need the audio to stream quickly. I planned to use my shared hosting to hold the frontend and MYSqL database while Using an aws s3 bucket to store the audio + cloudflare to push the music to the user.

Or should I just use firebase as an s3 bucket while I'm small and let My shared hosting do the rest.

Or should just get a better faster
Shared hosting company and just start there. Any advice would be appreciated. I prefer not to learn the hard way if i don't need to.

  1. 2

    For large amount of data both AWS S3 and Google cloud are expensive, have a look at DO spaces. It's AWS S3 compatible which means you can start with AWS and then switch to DO spaces if you think AWS expensive.

    1. 1

      Thank you for this. I will into DO

  2. 1

    Hi There,
    Check out Light Sail - https://aws.amazon.com/lightsail/
    It'll really take your mind off DevOps.
    Cheers,
    Jonathan

    1. -1

      This comment has been voted down. Click to show.

      1. 1

        In that case, I'd just spin up a marketplace ec2 with LAMP.

        PS you already know javascript, why not ditch PHP for nodeJS?

        PPS If you'd like some advice, I'm doing free 30-min consults now, feel free to book one. https://calendly.com/jonathanoron

  3. 1

    From my experience with AWS the most long term and effective setup would be to host everything in AWS and deploy it using AWS SAM (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html). This way you can deploy your whole stack with API, frontend, database, storage etc in one simple command and you only pay for what you use. Simplest stack would be:

    Frontend: JavaScript app hosted on S3 + CloudFront
    Backend: API Gateway + Lambda
    File storage: S3 + CloudFront

    However, this might take a while to learn so if you have used the services that you mentioned before it might be a better choice. If you use S3 for file storage I would recommend AWS CloudFront as the CDN instead of CloudFlare - easier to have everything in one place.

    1. 1

      Thanks. You are right I researched and found Cloudfront better than Cloudflare. Still comparing it to the others

    2. 1

      Wait in this frontend/backend/file storage stack what acts as the database?

      1. 2

        Depending on the use case I would use DynamoDB (NoSQL) or RDS (MySQL/Postgres) running on AWS.

      2. 1

        MYSQL on shared Hosting

        1. 1

          This comment was deleted 4 years ago.

  4. 1

    This comment was deleted 2 years ago.

    1. 1

      Thanks. I will research further.

Trending on Indie Hackers
Getting first 908 Paid Signups by Spending $353 ONLY. 24 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments How I Sourced 60% of Customers From Linkedin, Organically 12 comments Hero Section Copywriting Framework that Converts 3x 12 comments Join our AI video tool demo, get a cool video back! 12 comments