-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
# metrica | ||
|
||
What we are trying to solve here? A simple race condition problem, here multiple pieces of code are trying to access the same shared data! | ||
What we are trying to solve here? A simple race condition problem, where multiple pieces of code are trying to access the same shared data! | ||
|
||
 | ||
|
||
# Api Example | ||
|
||
Request | ||
```bash | ||
curl -i -X 'GET' http://localhost:8080/count | ||
``` | ||
## Get starting | ||
|
||
All commands could be accessed typing: `make help` | ||
|
||
To test the code using containers🐋 | ||
|
||
`make dev/test` & `make dev/lint` | ||
|
||
|
||
## Resources | ||
|
||
This example is really close with the problem that we have here | ||
Some resources that were useful to solve it | ||
|
||
[Mutex](https://golangbot.com/mutex/) | ||
[Atomic Counters](https://gobyexample.com/atomic-counters) | ||
[Bjorn Rabenstein - Prometheus: Designing and Implementing a Modern Monitoring Solution in Go](https://www.youtube.com/watch?v=1V7eJ0jN8-E) | ||
- [Mutex](https://golangbot.com/mutex/) | ||
- [Atomic Counters](https://gobyexample.com/atomic-counters) | ||
- [Bjorn Rabenstein - Prometheus: Designing and Implementing a Modern Monitoring Solution in Go](https://www.youtube.com/watch?v=1V7eJ0jN8-E) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.