2coffee.dev

Hot Weekly

Transforming the Blog into "Web is on the edge"
Transforming the Blog into "Web is on the edge"

Transition from traditional server hosting to an "Edge" and "Serverless" architecture for their blog and services

Discussion on Load Balancing
Discussion on Load Balancing

Load balancing, an important technique in distributed systems to ensure performance, availability, and scalability of applications. It helps systems operate stably under unpredictable traffic from users.

Discussing the npm run build command – why is it necessary to build?
Discussing the npm run build command – why is it necessary to build?

npm run build command, which is essential for JavaScript developers preparing to release applications.

How to Delete a Pushed Commit
How to Delete a Pushed Commit

How to delete a pushed commit in Git, addressing a common issue many users face. It highlights that while some resources provide guidance on deleting unpushed commits, the process for pushed commits is more complex and risky.

Measuring the Execution Time of Functions in JavaScript in a Graceful Way
Measuring the Execution Time of Functions in JavaScript in a Graceful Way

The execution time of functions in JavaScript to identify performance issues in applications. It highlights the challenges developers face when unexpected problems arise, such as slow API responses due to certain functions taking excessive processing time.

  • "Dockerizing" a Node.js Application
    • 🏷️node.js
    • 🏷️docker

    "Dockerizing" a Node.js Application

    There are many ways to deploy a Node.js application in practice. The simplest one is just running the node index.js command to start it. However, to keep the application running continuously, we need a process management tool, such as pm2. Using pm2, we can initialize a Node process and keep it running until we intentionally stop it. Moreover, it allows us to scale the application from 1 instance to 2, 3, 4... instances, as long as your server can handle it. pm2 also offers many other features that you can explore in its documentation. Recently, the keywords "Dockerize" or "Containerize" have been gaining popularity in the online community. In simple terms, it means "packaging" the application into a single "file" called an Image. After the application is packaged, it can be launched with Docker using just a few commands...

    🕝1 year ago

  • Understanding the layer caching mechanism when building a Docker image for better Dockerfile writing
    • 🏷️docker

    Understanding the layer caching mechanism when building a Docker image for better Dockerfile writing

    Docker has become increasingly popular in the IT community, with more and more people using it. The frequency of Docker appearing in job descriptions has also increased. My company uses Docker, my projects use Docker, projects that I work on for others also use Docker... Docker has emerged as a valuable "packaging" solution for the automation revolution. However, there has always been a time-consuming issue with building Docker images. The size of a Docker "image" can sometimes reach several gigabytes, making Docker a "hard drive killer"....

    🕝2 years ago

  • Premium
    Hello

    Me & the desire to "play with words"

    Have you tried writing? And then failed or not satisfied? At 2coffee.dev we have had a hard time with writing. Don't be discouraged, because now we have a way to help you. Click to become a member now!

    Have you tried writing? And then failed or not satisfied? At 2coffee.dev we have had a hard time with writing. Don't be discouraged, because now we have a way to help you. Click to become a member now!

    View all
  • Series
    Series on Docker in Practice & Production - Network in Docker
    • 🏷️docker

    Series on Docker in Practice & Production - Network in Docker

    One of the reasons that Docker has become powerful is its networking system, which allows containers to easily connect with each other, regardless of whether they are running in a Docker environment or on different Docker platforms like Linux, Windows, or MacOS. To understand this in more detail, let's dive into the topic of networking in Docker...

    🕝3 years ago