Welcome Guest, Not a member yet? Register   Sign In
Scalable Design of Codeigniter 4
#2

Hi,

I'm afraid I can not provide any links to resources, as I don't know where I got everything from...

1. I'm afraid not. Your PHP-code should be coded as a "dum" project. Meaning sessions should be stored off site (in DB or other solution). Nothing on the server should depend on the specific server.

2. We have a complete copy of the application across our servers. And point it to a specific "run" file to start that specific functionally. It really depends if this are an API-type of design. Then you can have a backend code and frontend, so then two different code bases could be a better solution.

3. Personally MariaDB, but whatever you are comfortable with.

4. Master and slave, so everything are copied in real time. CodeIgniter support failover, but as it needs to be timed out, you will get some slowdowns. So if you can implement a "load balancer" / monitor solution for your database outside of CodeIgniter. It would be better. I don't know exactly how the failover works, if it's cached or not.

5. nginx, personally preference. So you just need to learn one tool and stick with it. As it used as a server for the PHP-application as well.

6. Redis for in-memory caching. And it supports multiple servers (master / slave), so you can have a failover if you want.
https://aws.amazon.com/elasticache/redis-vs-memcached/

If I could do it all again, Nginx for static content. And toss out Varnish. As it's faster and you don't need a reverse-proxy (if varnish and nginx are on the same server). Depending on how big of a project we are talking about. If you host multiple services on the same server or not.

7. We have our own, on our hosting provider. Just take GDPR into account when outsourcing.

8. No comment, we are using a local ISP.

Docker or containers are popular, so you can just spin up an exact copy again. Haven't used them myself. And the website aren't that big to even consider using it.
Reply


Messages In This Thread
Scalable Design of Codeigniter 4 - by myo - 06-13-2020, 02:30 AM
RE: Scalable Design of Codeigniter 4 - by jreklund - 06-13-2020, 06:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB