Skip to content

Yangiboev/request-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Request Counter


Request Counter


Explore the docs »


Table of Contents
  1. About The Repo
  2. Getting Started

About The Repo

This is a simple server which is being develeped by Dilmurod

  • Our time should be focused on creating something amazing. A project that solves a problem and helps others

  • I should element DRY principles to the rest of your life 😄

  • I assume that the web server is synchronous, if the other case (asynchronous), then I would have to guard my counter using a mutex or atomic in order to prevent my server from being hit with race-condition bugs. However, I believe that locking would be expensive if we get hit a high-performance scenario.

  • After considering a high-performance scenarios that thousands of requests could come in at the very same time, I thought that I need proper synchronization. The concurrency model of golang makes it easy to serialize all accesses to the application's state: no (explicit) mutexes are required.

Getting Started

This is an example of how you may give instructions on setting up your project locally.

To get a local copy up and running follow these simple example steps.

Installation

  1. Clone the repo
git clone https://github.com/Yangiboev/request-counter.git

If you run code locally please, make sure that you have golang version 1.15 or above.

  1. In order to run locally
go run cmd/main.go
  1. Fork the Project

  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)

  3. Commit your Changes (git commit -m 'Add some AmazingFeature')

  4. Push to the Branch (git push origin feature/AmazingFeature)

  5. Open a Pull Request

Contact

Dilmurod Yangiboev - @icon_me - dilmurod.yangiboev@gmail.com

Repo Link: https://github.com/Yangiboev/request-counter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages