5
11 Comments

Tech stack for reliable 10000 users

what should be my tech stack which serve video and code editor content with test cases...? concurrent users might be 1000...as i have offline presence but not online..wanted to make impact online..kindly help me out with tech stack.. @csallen

on November 8, 2019
  1. 8

    Without giving any context there's no reasonable way to answer this question. Usually you should pick what you are comfortable and productive with, not what will theoretically will bring you a benefit in the far future when you have thousands of users. Video isn't very heavy on processing, just on bandwidth if you want to host everything yourself. As for test cases and editor content it really depends what you want to do. If you need to run users code in some kind of containerized environment it would obviously take some resources but is not relevant to the stack of your web application.

    Once you are at the point that scaling becomes an issue you can focus on that and maybe even get people on board to deal with that problem. Getting to that point is the complicated part.

    Are you sure you have 1000 concurrent users right from the start? These theoretical 1000 users probably don't do requests all the time concurrently so that's hard to estimate without any insight into what kind of tool you are trying to run.

    To sum up: Pick what you are comfortable and productive with. Don't worry about scaling if you don't even have a single line of code written.

    1. 1

      Thanks for the suggestion...!How can i put my application secure..and what can i use to understand my user events..?
      Kindly help me with client side security and server side & DB. @dewey

  2. 3

    The code layer is not that important in your case if you know what you are doing, the two major factors that you need to consider is Infrastructure as Code and proper caching, My recommendation for the DevOps part is to use the HashiCorp stack to provide environment agnostic setup, and for caching, make sure to use proper ETag and cache-control in your HTTP side and CDN as much as possible, serving even just your static JS and Images out of a logic server is going to exhaust it's network bandwidth pretty fast and rack up big charges on your end.

    1. 1

      Any suggestion on Code editors where it is in built in my web app ... how can i reduce the load if there are multiple people executing the test cases..kindly suggest if u know any good API..for code editors..! @ShadowCode

      1. 1

        What are the supported languages you want to have ?

        1. 1

          Currently:
          java, C++, Python, javscript

          1. 1

            I would go and develop something custom but that is not a sound business idea, to support 10k concurrent users you really need to have a good idea of what the average usage pattern is for your platform, in reality handling everything except the actual compilation and execution can be optimized based on the recommendations I gave you, the compute and ram usage on 10k users I imagine is goi g to be costly so I suggest you follow my other advice, make it as scalable as possible using some proper infrastructure tools so you can scale with your customers

  3. 2

    You can scale anything if you throw enough hardware at it. Elixir/Phoenix or Node will give you concurrency bang for the buck out of the box, but also Python paired with a library that uses asyncio, e.g. FastAPI .

  4. 1

    Hey @sudheersan, here's my tech stack that I use to power my application. Shared this with fellow Indie Hackers the other day and many of them found it useful.

    https://medium.com/one-profile/one-profiles-tech-stack-eec321f479f5

    Hope it helps!

    1. 2

      Hi @qabil I am new here and have spent the last day and a half reading, just wanted to congratulate you on a very professional product, cheers :)

      1. 1

        Hi @ShadowCode, welcome to Indie Hackers! I'm practically new myself here too :)

        Thank you very much for the good wishes. I hope you've tried using One Profile even if it's just playing around with creating a profile for yourself :)

  5. 1

    This comment was deleted 6 years ago