fuelpass app එක හදන්නේ කොහොමද

rockmon

Well-known member
  • Jul 31, 2017
    3,501
    3,891
    113
    mey site/app eka ubala haduwa nam kohomada hadanne ?

    ( dan eka nam React/TypeScript/ Backend php/node wenna one ,server nginx server)

    aduma 1million concurrnet users/request handle karanne kohomada ?

    mokadda tech stack eka ? LAMP or MERN

    code level ekenda hadnle wenne or server configurations level ekenda ( multiple servers or load balancing )

    budget eka kohoma weyida ?

    any ideas elakiri SE experts or DevOps experts ?

    ubala ehema hadapu example app/sites tiyenwada live ?


    programming language wala namak withrak danna epa, pulwuan nam podi explantion ekak denna



    net eken ansswer ekaka



    For something like this; load balancing. The app can be running on many servers distributing the load. Once that is achieved, it's literally trivial (a few button clicks) to add/remove servers, or have AWS do it automatically with auto-scaling. Like maybe the bulk of your load is during US business hours. You could have 4 (or whatever) app servers running during those times, and only have 1 or 2 during off peak times.


    This setup also helps with failover, as there isn't a single point of failure if you set it up right. If an app server goes down, the other servers just pick up the load. You destroy the bad server and bring up a new one with no downtime to your app. That can also be automated.


    This type of setup is different from a typical setup. You'd have a separate db server that the other webservers share. You'd use S3 for storing all assets instead of on an individual server, so that all servers (acting as one) has access to the same data. If user A uploads a file to Server A, it needs to be accessible by servers B, C and D as well, so it can't be stored on the individual webserver.


    The same goes for sessions. A user might login to server A, but the next request gets served from server B. So you need a common session store that all servers use, like redis.


    Now you're just left with dumb webworkers, so you can just add new ones to increase capacity and scale.


    Here's a good place to start learning: https://serversforhackers.com/c/so-you-got-yourself-a-loadbalancer
     
    Last edited:
    • Like
    Reactions: Sabren

    Amith0424

    Well-known member
  • Oct 27, 2010
    14,245
    24,395
    113
    ℒ𝓸𝓬𝓪𝓽𝓲𝓸𝓷
    language ekanam wadagath wenne nathi weyi.
    database ekayi server ekayi thama important.
    oya app eke backend eken rmv unge thawa server ekakata request yanawane. unge server eke thama pena widiyata lokuma aula thiyenne.
    programming expert kenek neme mama
     
    • Like
    Reactions: rockmon

    rockmon

    Well-known member
  • Jul 31, 2017
    3,501
    3,891
    113
    language ekanam wadagath wenne nathi weyi.
    database ekayi server ekayi thama important.
    oya app eke backend eken rmv unge thawa server ekakata request yanawane. unge server eke thama pena widiyata lokuma aula thiyenne.
    programming expert kenek neme mama
    ela ela
     

    siri_ayya

    Well-known member
  • Feb 1, 2022
    16,966
    1
    29,885
    113
    Java thama loke hodama language eka , NASA eken moon eketa giyeth JAVA walin
    Java heap memory use කරනවා වැඩියි බන්..

    ඒක පැත්තකින් තියමුකො පොඩ්ඩක්.. ඇයි බන් අතේ පැලවෙන බොරු ගහන්නේ? හඳට ගිය කාලෙයි java lang ඒක ආපු කාලෙයි පොඩ්ඩක් google කරලවත් බලපං බොරු කෙලින්න කලින්..
     

    pittarox

    Well-known member
  • Jan 27, 2009
    777
    672
    93
    Java heap memory use කරනවා වැඩියි බන්..

    ඒක පැත්තකින් තියමුකො පොඩ්ඩක්.. ඇයි බන් අතේ පැලවෙන බොරු ගහන්නේ? හඳට ගිය කාලෙයි java lang ඒක ආපු කාලෙයි පොඩ්ඩක් google කරලවත් බලපං බොරු කෙලින්න කලින්..
    sarcasm gana iganaganna yalluwa
     
    • Haha
    Reactions: siri_ayya