Giter VIP home page Giter VIP logo

go-codelab's Introduction

Hits

Hi There ๐Ÿ‘‹

My name is MinJae Kwon (a.k.a mingrammer).

  • ๐Ÿ’ป A software engineer who loves designing system architectures.
  • โค๏ธ Love open source. Appreciate all the open source contributors.
  • ๐ŸŽจ Creator of Diagrams, the Diagram as Code language. (Try it!)
  • ๐Ÿ› ๏ธ Don't fall in love with the tech. Fall in love with problem solving.
  • ๐Ÿญ Love automating boring tasks and making tools for developers.

mingrammer's github stats

go-codelab's People

Contributors

lkaybob avatar mingrammer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

go-codelab's Issues

We could use single-directional channel

'Serve' method only send out their log data to logger not receive anything from that. And file logger only receive the log data from outside.

So, we could use single-directional channel instead of bidirectional channel (normal channel strcut)

Add infinite loop

Clients produce the sensor dara only one time now. So should wrap the prducing code with infinite loop.

Limit the sending count

Sensors (in client file) send the log data to server unlimitedly now. So, I'll limit the count of sending log data for making user does not need to type the 'Ctrl + C'.

In real world, Of course, Sensors should send the log data continuously but this is just tutorial.

Need checking the directory/file existence

If there is no 'log' directory or file with 'Temp.log'-like filename, sensor_server throws panic of no such file or directory

So, we should check the existence of directory/file.

Final Proof Reading

Final proof reading and modifications. Leave Replies for modification suggestions

Create channel pipeline in client

Create pipeline as buffered queue using channel. This is for storing the sensor data before send that to server. Then pipeline will sends the queued data to server concurrently.

Produced sensor data would not be sent to server immediately, but pipeline manage the sending time for that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.