This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Implementing Retry Logic in Spring Boot | |
Spring Boot provides an easy way to implement retry logic using the Spring Retry module. Here's how to implement it: | |
## 1. Add Dependencies | |
First, add the Spring Retry dependency to your `pom.xml` (for Maven): | |
```xml | |
<dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Medindo Desempenho de API em TypeScript | |
Para medir o desempenho de uma API em TypeScript, existem várias abordagens e ferramentas que você pode utilizar. Aqui estão algumas das principais técnicas: | |
## 1. Usando o módulo `performance` do Node.js | |
```typescript | |
import { performance } from 'perf_hooks'; | |
async function measureApiCall() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Medindo Desempenho de API em Spring Boot | |
Existem várias formas de medir o desempenho de uma API Java com Spring Boot. Aqui estão as principais abordagens: | |
## 1. Métricas Básicas com Spring Boot Actuator | |
Adicione a dependência no seu `pom.xml`: | |
```xml | |
<dependency> | |
<groupId>org.springframework.boot</groupId> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Medindo Desempenho de API em Ruby on Rails | |
Para medir o desempenho de uma API em Ruby on Rails, existem várias abordagens e ferramentas que você pode utilizar. Aqui estão algumas das principais: | |
## 1. Benchmarks Básicos | |
```ruby | |
# Em algum lugar do seu controller ou service | |
start_time = Time.now | |
# Código que você quer medir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://chatgpt.com/share/679ccd5b-4a18-800d-a570-35daba105d46 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install @aws-sdk/client-s3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from fpdf import FPDF | |
# Configurações | |
csv_file = 'seu_arquivo.csv' # Substitua pelo nome do seu arquivo CSV | |
pdf_file = 'saida.pdf' # Nome do arquivo PDF de saída | |
chunk_size = 50 # Quantidade de linhas por chunk (pode ser ajustado) | |
# Inicializar o PDF | |
pdf = FPDF() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ícone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
icone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/luismendes070/tv-samples | |
https://github.com/luismendes070/androidtv-sample-inputs |
NewerOlder