The main objective of this article is to get familiar with basics of Proxy Server and using any logic we can create our own reverse proxy server in Golang.

What is a proxy Server?

Proxy means someone has the power or authority to do something for someone else or pretends to be someone else. Let us see this with a simple example, if you are living with Bob and currently he is not at home and you are alone and suppose the phone rang and you picked up the call and caller said, “Hi, this is Martin, may I speak to Bob”. As Bob was not at home so you pretended to be Bob and had a discussion with caller on behalf of Bob. So here, you are pretending to be Bob and caller is not aware that he is not speaking to Bob.

A Proxy server is simply a server that pretends to be an original server for clients.

Image for post

Types of Proxy Server

Proxy servers are of different types based on the behaviour of the server. Some are mentioned below.

  • Forward Proxy
  • Reverse Proxy
  • Anonymous Proxy
  • Tor Onion Proxy

There are many more proxy servers. We will see some in detail.

#go #golang #developer

Proxy Server in Golang
2.45 GEEK