Skip to main content

Posts

Showing posts from January, 2024

Linux server setup

   New Linux server Config ------------------------------ 1. mongod 2. redis 3. nginx 4. postgresql 5. docker 6. rabbitMQ 7. ssh 8. kuberneies 9. Jenkins 10. HAproxy  11. Github 12. NVM 13. npm  Server Restart Check list ------------------------------ 1. mongod 2. redis 3. nginx 4. postgresql 5.docker 6. rabbitMQ 7. ssh Note: sudo systemctl status nginx Microservice Deployment Check list --------------------------------------- 1. change port in .env 2. change port in dockerfile 3. change port in docker-compose.yml file 4.  make sure using the right port when you  run docker -d -p 0000:0000 iamgeName

Object Storage System Design

Object Storage System Design 𝐁𝐮𝐜𝐤𝐞𝐭. A logical container for objects. The bucket name is globally unique. To upload data to S3, we must first create a bucket. 𝐎𝐛𝐣𝐞𝐜𝐭. An object is an individual piece of data we store in a bucket. It contains object data (also called payload) and metadata. Object data can be any sequence of bytes we want to store. The metadata is a set of name-value pairs that describe the object. In S3, an object resides in a bucket. The path looks like this: /bucket-to-share/style.css. The bucket only has metadata. The object has metadata and the actual data. The diagram below (Figure 1) illustrates how file uploading works. In this example, we first create a bucket named and then upload a file named “style.css” to the bucket. 1. The client sends an HTTP PUT request to create a bucket named “bucket-to-share.” The request is forwarded to the API service. 2. The API service calls Identity and Access Management (IAM) to ensure the user is authorized and has W...