The author selected the Open Internet/Free Speech Fund to receive a donation as part of the Write for DOnations program. Continue reading “How To Use Node.js Modules with npm and package.json”
Como Escalar Automaticamente suas Cargas de Trabalho no Kubernetes da DigitalOcean
Introdução
Ao trabalhar com uma aplicação criada no Kubernetes, os desenvolvedores frequentemente precisam provisionar pods adicionais para lidar com períodos de pico de tráfego ou aumento da carga de processamento. Por padrão, provisionar esses pods adicionais é uma etapa manual; o desenvolvedor deve alterar o número de réplicas desejadas no objeto do deployment para contar com o aumento do tráfego e alterá-lo novamente quando os pods adicionais não forem mais necessários. Essa dependência da intervenção manual pode não ser o ideal em muitos cenários. Por exemplo, sua carga de trabalho pode atingir o horário de pico no meio da noite, quando ninguém está acordado para escalar os pods, ou seu site pode receber um aumento inesperado no tráfego quando uma resposta manual não seria rápida o suficiente para lidar com a carga. Nessas situações, a abordagem mais eficiente e menos sujeita a erros é automatizar o escalonamento dos seus clusters com o Horizontal Pod Autoscaler (HPA). Continue reading “Como Escalar Automaticamente suas Cargas de Trabalho no Kubernetes da DigitalOcean”
Como usar o Git para Gerenciar seu Projeto de Redação
Introdução
O controle de versão não é apenas para código. É para qualquer coisa que você queira acompanhar, incluindo conteúdo. Usar o Git para gerenciar o seu próximo projeto de redação permite a você exibir vários rascunhos ao mesmo tempo, ver diferenças entre esses rascunhos e até reverter para uma versão anterior. E se você estiver confortável com isso, poderá compartilhar seu trabalho com outras pessoas no GitHub ou em outros repositórios centrais do Git. Continue reading “Como usar o Git para Gerenciar seu Projeto de Redação”
Como criar um API Gateway Usando o Ambassador no Kubernetes da DigitalOcean
O autor escolheu a Free and Open Source Fund para receber uma doação como parte do programa Write for DOnations. Continue reading “Como criar um API Gateway Usando o Ambassador no Kubernetes da DigitalOcean”
How To Manage Sorted Sets in Redis
Introduction
Redis is an open-source, in-memory key-value data store. In Redis, sorted sets are a data type similar to sets in that both are non repeating groups of strings. The difference is that each member of a sorted set is associated with a score, allowing them to be sorted from the smallest score to the largest. As with sets, every member of a sorted set must be unique, though multiple members can share the same score. Continue reading “How To Manage Sorted Sets in Redis”
How To Change Redis’s Configuration from the Command Line
Introduction
Redis is an open-source, in-memory key-value data store. Redis has several commands that allow you to make changes to the Redis server’s configuration settings on the fly. This tutorial will go over some of these commands, and also explain how to make these configuration changes permanent. Continue reading “How To Change Redis’s Configuration from the Command Line”
How To Add Sidekiq and Redis to a Ruby on Rails Application
Introduction
When developing a Ruby on Rails application, you may find you have application tasks that should be performed asynchronously. Processing data, sending batch emails, or interacting with external APIs are all examples of work that can be done asynchronously with background jobs. Using background jobs can improve your application’s performance by offloading potentially time-intensive tasks to a background processing queue, freeing up the original request/response cycle. Continue reading “How To Add Sidekiq and Redis to a Ruby on Rails Application”
How To Build an Inspirational Quote Application Using AdonisJs and MySQL
The author selected the Tech Education Fund to receive a donation as part of the Write for DOnations program. Continue reading “How To Build an Inspirational Quote Application Using AdonisJs and MySQL”
How to Build a Django and Gunicorn Application with Docker
Introduction
Django is a powerful web framework that can help you get your Python application off the ground quickly. It includes several convenient features like an object-relational mapper, user authentication, and a customizable administrative interface for your application. It also includes a caching framework and encourages clean app design through its URL Dispatcher and Template system. Continue reading “How to Build a Django and Gunicorn Application with Docker”
How To Migrate Redis Data to a DigitalOcean Managed Database
Introduction
There are a number of methods you can use to migrate data from one Redis instance to another, such as replication or snapshotting. However, migrations can get more complicated when you’re moving data to a Redis instance managed by a cloud provider, as managed databases often limit how much control you have over the database’s configuration. Continue reading “How To Migrate Redis Data to a DigitalOcean Managed Database”