What are my duty in a open university (as a senior PHP developer) to tackling network crashing for increasing accessibility of our web based services? I need big picture.
What is senior PHP developer duty about tackling network(physically) related issue's?
218 Views Asked by Mohammad At
1
There are 1 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in SERVER
- How can I monitor an endpoint's status with Ruby?
- Rasterization with Javascript looks different on Apache server
- Netty loses udp packets at the beginning of the communication
- How to have Heroku build my development branch on a staging server?
- Timing packets on a traffic server
- copying file from local machine to Ubuntu 12.04 returning permission denied
- AWS EC2: Migrating from Windows to Linux Server
- Connecting Ms Access Db to Mysql through Vba
- Remove ".local" suffix on local server (Yosemite)
- Server program gets stuck at accept function
- PayPal API QueryParameters not found
- Python Server - Processing WebSocket.close()
- NameValuePair, HttpParams, HttpConnection Params deprecated on server request class for login app
- Unable to send file from ftp to another ftp
- Scala - TCP Packet frame using Akka
Related Questions in CRASH
- Perl Command Line Interpreter crashing on exit
- matlab crash during acquisition of pointgrey images
- Running Line of code twice causes activeX error 0x8000ffff
- iOS application crash on [ParseCrashReporting enable]
- Visual Studio 2013 crashes when writing opening angle bracket
- sql management crashes when getting database list
- C program crashes when I tried to set an element of type char* in my struct to a specific string?
- Animation in WXpython leads to "python.exe has stopped working"
- iOS crash report analysis
- Android Studio randomly disappears/crashes with 7GB Ram
- How crash reporting tools really work
- Parse.com crash with basic project on iOS 7.0
- Crash cause of own template
- Xamarin App crashes on Reopen NullReference
- WPF Application crashes on startup
Related Questions in HIGH-AVAILABILITY
- Google Cloud Bigtable Durability/Availability Guarantees
- Hive with Hadoop high availability
- Can't start Neo4j cluster -- Write transactions to database disabled
- HACluster Config for Stardog
- High Availability with hot-standby and auto-failover in postgresql
- Nagios monitoring for Exchange highavailability [Failover]
- Neo4j v2.2.3 Embedded HA: can't create cluster
- Can elasticsearch instances with different settings join the same cluster?
- High Availability Websockets Server
- Website/webserver fault tolerance - the best practices
- HaProxy - group tcp and http hosts dependent of each other
- Jenkins master failover scenario
- spring-xd job repository datasource enable oracle fast connection failover
- auth in kibana cluster
- Hadoop Ha namenode java client
Related Questions in STABILITY
- Determining Stable discs in Othello
- ArrayList.Sort should be a stable sort with an IComparer but is not?
- What does "stable" really mean in relation to code?
- Time-Based Simulation Independent of Frame Rate
- JSF 2.0 stability issues
- How do I test salesforce web applications for browser stability?
- Mimic curl working script in Guzzle (multipart data with binary uploads together)
- on Python's "sorted" method being stable or not
- Why are USB connections so unreliable and sporadic?
- How do the [Retry] and [Repeat] attributes interact, in NUnit
- What is senior PHP developer duty about tackling network(physically) related issue's?
- Python: push item vs creating empty list (efficiency)
- How stable is VS2010 beta 2?
- Measuring network performance tool in c#
- App rejected for Designed for Families due to stability issues
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Here are some things to think about from the application code end to the networking end:
Catch it and Cache it Basically, caching. Use caching (Redis or memcached, +1 for redis) to cache (cacheable/readonly/data that doesnt need to be fresh every second) data wherever you can so you can avoid having to constantly query for or fetch data from a database or other sources, hence reducing potential overloading of resources.
Get in a line! Add incoming requests into a queue and respond immediately to them. Then the clients could follow up on the status of responses via polling, eventstreams/sse, or other forms of client-server communication. The idea here is to use this queue of requests to asynchronously process user requests and push the response back to them. This would require a strong rethink of your architecture, however, to switch to message queueing if you're not already there. You could also just add queueing for heavier requests that might take more time than usual or require a lot of resources to process while leaving everything else synchronous.
Vertically scale up Possibly the simplest (and most expensive) thing you could do is to simply scale your host machines up (in terms of CPUs/cores, RAM, bandwidth available). Note, however, there's only so far you can take it before you really need to think of a better way to handle the load (if you get to that traffic level) in a more distributed manner.
Perfectly balanced, as all things should be You could setup a load balancer (through AWS, Digitalocean, maybe your host provides one if you're not under these) that routes requests between multiple instances of your PHP webserver. In other words, you'll need to run multiple instances of your PHP server. Multiple on the same machine along with instances on other machines. This setup is a little bit more complicated to get right but is a fairly tried-and-tested approach to building a stronger load-balance, distributed setup.
Not my concern! Separation of concerns - if you have a huge monolithic architecture, consider maybe splitting up your application into multiple services in an attempt to attempt a microservice architecture. The idea here is to separate the different gears that could take down your whole architecture from each other into individually-diagnosable units. You can then handle scaling and reliability individually for each of the services/microapplications.
There's other things you can do as well but these are some good thinking points as to how you can prepare your web server to be a bit more reliable.
Another very important thing is Observability/Monitoring. You need really good logging and metrics about your servers in order to be able to pinpoint issues.
When you start getting 1000s of concurrent users hitting your website on a Sunday night, overloading your database and almost taking down your server, time is of the essence. You need to be able to act and react quickly and you can only do that if you have information to act upon.
Having access to logs is important. Also having quick go-to actions you can take is also important (eg. scaling up resources, adding extra machines..etc are temporary measures you can take to keep things standing while you investigate a more permanent solution).
All in all, there's no one size fits all solution. Even huge modern tech companies have products that experience outages now and then. It's almost impossible to guarantee 100% server availability, but you can definitely improve your server reliability and recoverability.
Edit: If you'd like to learn more about general system design, https://github.com/donnemartin/system-design-primer is an excellent resource (the README) to get started!