What general Architecture would you recommend

I am currently building an application in the sector of onboarding and documentation and it will have these key aspects: Upload/Edit/View many images, Upload/Edit/Stream many videos, and a collaborative Text Editor. The architecture will kind of follow very loosely the schematic below. It’s important for me to use as few developer resources as possible in the beginning, not have too high initial costs, and to be able to scale quickly which is why I am at AWS.

I’m starting international, and my first customers will be probably be two companies with 1000 and 400 employees. So, the structure needs to be able to adapt and scale fast (not in minutes maybe, but within a day) and also be cost-effective since video hosting and image hosting (third-party) are already pricey.

Which general approach would you suggest: Elastic Beanstalk, ECS Instances or EKS or something completely else?

I am aware that there is no one solution and this would also need much more detailed data but trying to get some suggestions and opinions as I am relatively new to AWS but not Development

Nginx everywhere instead of ELB is asking for trouble down the line in terms of scaling and managing.

People hire other to know such stuff

Doing compliance app from suggestion some random guy from reddit is not the best approach.

For a MVP before the first customers ? ..I highly doubt that I worked in startups myself this is surviving with a good enough solution until you can hire specialists. That’s no more no less what I am looking for , suggestions into services I maybe don’t know so far I will read anything very carefully and research what is suggested

Thank you had this anyway in mind this was just a first sketch

CloudFront+waf on the edge, everything else connects via CloudFront, cache everything you can.

I can tell about UK, If you try to use commercialy of any kind compliance product you need to have a lot of policy like DR, data retintion, comply with GDPR and that add up a lot to price of products
If you need a cheap MVP use serverless approach at initial stage, look at serverlessland.com for example as initial point

Hi, AWS consultant here. Elastic Beanstalk is not a direction AWS is pushing customers these days so I wouldn’t recommend it. Kubernetes is super powerful but takes manpower to maintain so I think it’s overkill for your usecase. ECS is much easier to maintain and can scale for your needs easily.

AWS has documentation and services around media streaming so I’d recommend you search around that for best practices on caching/config etc.

Regarding scalability - the AWS services you use can scale extremely well but your app must play by certain rules to take advantage. I’m referring to keeping state outside the app (redis or similar) so containers can spin up and down as needed while all using the same state. Tons of documentation on this and I see it in your diagram, just pointing out that if you use these services suboptimally you won’t get the great performance they advertise.

You mention mongodb in your diagram. Is your data highly unstructured? That’s a fine answer if so, but just a gentle reminder that relational dbs are extremely performant with well thought out schemas, and most use cases do fit well into structured schemas. I bring this up because lazy db schemas can be very expensive since later on you have to throw more expensive servers at it to avoid a giant data model migration.

Also ELK stack… Is this just for monitoring? Or for supporting user search? It’s a powerful tool and I’ve enjoyed it in the past, just noticing it could be one of your largest costs depending on how much you use it for. As long as you pick a clean architecture you can often start with simple solutions and swap out implementation details when you learn more about how the system is used later. Premature optimization and over engineering kill more projects than dumb users do in my experience, though it’s a bitter pill to swallow for us coders who love building stuff :slight_smile:

Best of luck with your project!

Be careful of egress data charges as well. CloudFront gives you 1TB per month for free but after that it gets steep.

Thank you for this detailed answer … Yes I have unstructured data that has a lot of dynamic in it, but I agree could have still used SQL , now it’s too late the development time of switching my whole applications is greater than the benefit… Thats what I intend to do keeping Compute or Container instances mostly independent but still trying to find the best architecture… I am well aware that K8s means overhead on the other hand I am actually quite familiar with it but running and maintain k8s in a Enterprise Setting is completely different than in a fresh Startup, so I agree. I mostly will use Elastic Search for document search , monitoring is just a why not then using it as well for this.Thank you

Finding the Balance between too simple and over engineering is the hardest part :-(. I could spin up a dedicated server on hetzner and implement a lot of it myself. So knowledge is not the barrier but while AWS is clearly 10 times as expensive people often underestimate the costs of Ops/Dev Resources but it’s hard making the decisions where it makes sense to do it yourself from scratch or use a service. This also counts for AWS, some service cost a lot and don’t give much benefit but other are maybe expensive but save weeks and months

Images and Videos are completely outsourced I would be an idiot serving this over Cloudfront. At least in my case for some companies it might be justified.

Happy to help!

Do you know if the cost of a beefy mongodb server fits in your budget? Caching can reduce cost of course, I would just include that in your analysis in addition to refactor time. Hard changes now become harder changes later when the system is in use.

Since there are managed services for ELK stack and redis (open search, elasticache respectively) I think you’d come out ahead to use those. For small orgs there’s a huge risk in trying to do too much by hand, so if you can get it off the shelf it’s often worth it.

Your other comment is totally valid, it’s not an easy decision and even harder in small orgs without enterprise budgets. In general I steer away from self managed solutions whenever possible because once the person who stood them up leaves it is a big risk to the organization if it breaks down or needs an update (documentation helps if it exists, but it often doesn’t or falls out of date). A managed service does cost more, but what the org is paying for is reliability and support (AWS is not going away any time soon, but you could be hit by a bus (although I hope not!)). It also saves you a ton of time, and if you end up not liking the managed service you can still do it your own way (just now with more confidence in your decision and good experience for the next project on when to use the services in your toolbox).

No one can build everything from scratch on their own, and the best technical experts are simply people who know a lot of tools and can select the best one for the job. They will still glue those tools together with their own code, but to get there they had to try a lot of different tools to see when and where each one excelled. So don’t be shy about trying a bunch of things and seeing what happens, that’s how we all learn!

Redis is also really expensive if you use elasticache.

Those startups have to have somebody who knows what the customer wants and needs, though. Part of those needs are compliance.

Services are not a case of, “build it and they will come.”

I am pretty sure I know a lot about this use case as I literally worked in a company that offered a large scale document solution. This was not the question