Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about producer

Read more about producer

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - producer

golang producer consumer number of messages received

I have written producer-consumer pattern in golang. Reading multiple csv files and processing records. I am reading all records of csv file in one go. I want to log percentage of processing completion...
test-img

rahulpareekyx

go

channel

consumer

producer

Votes: 0

Answers: 1

Latest Answer

I have used atomic variable & counter channel where consumer will push count when record is processed & other goroutine will read from channel & calculate total processed record percentage...
test-img

rahulpareekyx

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved