worker pool in go
play

WORKER POOL IN GO A SIMPLE WORKER POOL IN GO ABOUT ME Adam - PowerPoint PPT Presentation

A SIMPLE WORKER POOL IN GO A SIMPLE WORKER POOL IN GO ABOUT ME Adam Presley Father Software engineer A SIMPLE WORKER POOL IN GO AGENDA Discuss designing for concurrency Using Go language types Review code Demo A


  1. A SIMPLE WORKER POOL IN GO

  2. A SIMPLE WORKER POOL IN GO ABOUT ME ▸ Adam Presley ▸ Father ▸ Software engineer

  3. A SIMPLE WORKER POOL IN GO AGENDA ▸ Discuss designing for concurrency ▸ Using Go language types ▸ Review code ▸ Demo

  4. A SIMPLE WORKER POOL IN GO …CONCURRENCY IS THE COMPOSITION OF INDEPENDENTLY EXECUTING PROCESSES, WHILE PARALLELISM IS THE SIMULTANEOUS EXECUTION OF COMPUTATIONS. Rob Pike

  5. WHAT IS MAILSLURPER?

  6. A SIMPLE WORKER POOL IN GO MAILSLURPER IS A SMALL SMTP MAIL SERVER THAT SLURPS MAIL INTO OBLIVION!

  7. REQUIREMENTS & STRATEGY

  8. A SIMPLE WORKER POOL IN GO SMTP LISTENER TCP GET A WORKER RETURN DO WORK CONNECTION Next available Worker TCP worker is rejoins connection is requested from the pool established pool and listens for clients

  9. HOW DO WE DO THIS? CHANNELS AND GOROUTINES

  10. A SIMPLE WORKER POOL IN GO CHANNELS AND GOROUTINES SERVER POOL WORKER Communicates A channel of with clients, workers. parses mail

  11. LET’S SEE SOME CODE!

  12. A SIMPLE WORKER POOL IN GO USEFUL LINKS AND REFERENCES ▸ Rob Pike - “Concurrency is not Parallelism” - https:// www.youtube.com/watch?v=cN_DpYBzKso ▸ Nick Saika - “Worker Queues in Go” - http://nesv.github.io/ golang/2014/02/25/worker-queues-in-go.html ▸ Marcio Castilho - “Handling 1 Million Requests per Minute with Go” - http://marcio.io/2015/07/handling-1-million- requests-per-minute-with-golang/ ▸ MailSlurper - http://mailslurper.com

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend