Socket
Book a DemoInstallSign in
Socket

github.com/tthiagosantos/multithreading-go-search-cep

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/tthiagosantos/multithreading-go-search-cep

v0.0.0-20241012035438-e3b187bacd5d
Source
Go
Version published
Created
Source

Consulta de CEP em Go: Escolhendo a API Mais Rápida com Multithreading

Este projeto realiza consultas de CEP utilizando duas APIs diferentes simultaneamente: BrasilAPI e ViaCEP. A aplicação retorna a resposta da API que responder primeiro, descartando a mais lenta, e limita o tempo de resposta a 1 segundo.

Índice

Sobre o Projeto

O objetivo deste projeto é demonstrar como implementar consultas eficientes a serviços web externos em Go, utilizando goroutines para executar requisições simultâneas e canais para capturar a resposta mais rápida.

Tecnologias Utilizadas

Como Executar o Projeto

  • Pré-requisitos:

  • Clonar o repositório:

    git clone https://github.com/seu-usuario/nome-do-repositorio.git
    

FAQs

Package last updated on 12 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.