Skip to content

AndreCDiniz/MultiThreading-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

FullCycle - Go Expert Postgraduate | Multithreading Challenge

Go Version License: MIT

A high-performance CEP lookup solution using Go concurrency patterns, implementing parallel processing and timeout handling.

📋 Overview

This project demonstrates practical multithreading implementation in Go for optimized address lookup via ZIP code. The system performs simultaneous queries to two different public APIs, returning the fastest valid response while efficiently managing timeouts and errors.

✨ Key Features

  • Parallel API Queries: Concurrent requests to BrasilAPI and ViaCEP
  • Fail-Fast Strategy: Returns the first valid response received
  • Controlled Timeout: 1-second response time limit
  • Error Resilience: Individual error handling per API
  • Structured Output: Clear result display with source identification

🚀 Installation & Execution

  1. Run with a valid 8-digit ZIP code:
go run cmd/fullcyclelab/main.go [ZIP_CODE]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages