SebWalak.com
open-menu closeme
Home
Archives
Search
About
bitbucket linkedin twitter rss

    Posts tagged with "concurrency"

  • Metronome's Cacophony (14/14) - concurrency in Go - Appendices

    calendar May 1, 2018 · 3 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy

    Appendices A. Concept of volumeMeter All scenarios are using a mysterious variable volumeMeter. It allows me to emulate lag of volume measurement in controlled fashion Note: You don't need to study the contents of volumeMeter as long as you assume that it is a function that provides current volume and is designed to …


    Read More
  • Metronome's Cacophony (13/14) - concurrency in Go - Video and Final Word

    calendar May 1, 2018 · 2 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy
    Metronome's Cacophony (13/14) - concurrency in Go  - Video and Final Word

    Asynchronous approach (ctd) Channels (ctd) Bonus contents ;) Intro Sorry for awful sound experience in this part (cutouts, crackling and volume deviations). Subsequent parts went better and suffer mainly from my poor diction and stutter. Your browser does not support the video tag. Counting Service Your browser does …


    Read More
  • Metronome's Cacophony (12/14) - concurrency in Go - Solution with Channel

    calendar May 1, 2018 · 4 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy

    Asynchronous approach (ctd) Channels (ctd) Solution with channels and a Goroutine This solution uses Goroutine to measure volume upon request, and a request and response channels to communicate between Goroutine and main loop. In practise, the volume measurement is continuous, because request for volume is sent as soon …


    Read More
  • Metronome's Cacophony (11/14) - concurrency in Go - Goroutines and channels

    calendar May 1, 2018 · 8 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy

    Asynchronous approach (ctd) Channels (ctd) Channel and Goroutine None of the previous examples demonstrated channels in the environment where they make most sense - concurrent one. My intention was to keep the examples as simple as possible and, at the same time, demonstrate the use of channels in synchronous way. What …


    Read More
  • Metronome's Cacophony (10/14) - concurrency in Go - Channel select

    calendar May 1, 2018 · 8 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy

    Asynchronous approach (ctd) Channels (ctd) Select statement If you want to embrace Go's channels, but are feeling constrained by all the blocking operations on them, select will make your day. It is part of Go's syntax and - in its simplicity - it's stunning how powerful it is. Link to documentation. Non-blocking …


    Read More
  • Metronome's Cacophony (9/14) - concurrency in Go - Channels introduction

    calendar May 1, 2018 · 8 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy

    Asynchronous approach (ctd) Channels Channels are extremely important in Go. They require shift of concurrent system design paradigm but they also ease you into it. I'm not going to scrimp on space to introduce them. What are channels in Go? Channels are the pipes that connect concurrent goroutines. You can send values …


    Read More
  • Metronome's Cacophony (8/14) - concurrency in Go - Mutex

    calendar May 1, 2018 · 7 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy

    Asynchronous approach (ctd) Mutex Term stands for mutual exclusion. In programming it is a property limiting resource access to one thread (or even one consumer - due to lack of reentrancy, later about that) at a time. Sounds familiar? In previous section the atomic functions were helping us achieve just that in …


    Read More
  • Metronome's Cacophony (7/14) - concurrency in Go - Atomicity

    calendar May 1, 2018 · 9 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy

    Asynchronous approach (ctd) Atomic Go provides you with sync/atomic package to help you with sharing state correctly. The tools within that package will help us provide implementation of metronome's engine with much more reliable performance. Let's start with generic definition of atomicity atomicity /ˌatəˈmɪsɪti/ noun …


    Read More
  • Metronome's Cacophony (6/14) - concurrency in Go - Sharing state

    calendar May 1, 2018 · 7 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy

    Asynchronous approach (ctd) Sharing access to mutable state Our solutions utilising Goroutines purposefully didn't share much state between Goroutines. I didn't want to pile it on you straight from start. A little exception was a solution with WaitGroup which allowed us to synchronise the completion of all Goroutines …


    Read More
  • Metronome's Cacophony (5/14) - concurrency in Go - WaitGroup

    calendar May 1, 2018 · 5 min read · from-java-to-go go concurrency  ·
    Share on: twitter facebook linkedin copy

    Asynchronous approach (ctd) WaitGroup Most asynchronous activities need a mechanism to signal completion with the option to deliver its outcome. We do this so that we can gather results of these Goroutines or just to to proceed once their effect sets, including graceful application termination scenario. Note: I am …


    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»

Seb Walak

Software Engineer. Technology lover. Technology hater. Tinkerer. Occasional traveller.
Read More

Featured Posts

  • Java Module System
  • Blog anatomy
  • Metronome's Cacophony. Concurrency in Go.
  • Base, custom VPC stack, provisioned with Terraform in AWS

Few Recent Posts

  • Blog anatomy - Infrastructure provisioning (upgrade 2024)
  • Blog anatomy - Infrastructure provisioning overview
  • Blog anatomy - Cloud services
  • Blog anatomy - Managing cloud resources
  • Blog anatomy - Site generation (upgrade 2024)
  • Blog anatomy - Site generation overview
  • Demo user with AWS-CLI and MFA.
  • Car Battery Discharge Guard

Categories

SOFTWARE-DEVELOPMENT 23 DEV-OPS 7 AUTHORING 3 LOOSE-THOUGHTS 2 TINKERING 2 FEEDBACK 1

Series

METRONOME-CACOPHONY 14 BLOG-ANATOMY 7 JAVA-FEATURES 1

Tags

GO 18 FROM-JAVA-TO-GO 16 CONCURRENCY 15 CLOUD 9 AWS 7 IAC 6 DOCKER 4 HUGO 3 ELECTRONICS 2 JAVA 2 LIB 2 ARDUINO 1 BDD 1 C 1
All Tags
ARDUINO1 AWS7 BDD1 C1 CLOUD9 CONCURRENCY15 DOCKER4 ELECTRONICS2 FROM-JAVA-TO-GO16 GO18 GOOGLE-CLOUD1 HARDWARE1 HUGO3 IAC6 JAVA2 JAVA91 JEKYLL1 JS1 LIB2 MAVEN1 PHP1 WORDPRESS1
[A~Z][0~9]
Copyright  SEBWALAK.COM. All Rights Reserved
SebWalak.com
Privacy policy | Disclaimer | Cookie policy | Cookies
Privacy policy | Disclaimer | Cookie policy | Cookies
Copyright  SEBWALAK.COM. All Rights Reserved
to-top