Skip to Content
Building RESTful Web services with Go
book

Building RESTful Web services with Go

by Naren Yellavula
December 2017
Intermediate to advanced
316 pages
6h 58m
English
Packt Publishing
Content preview from Building RESTful Web services with Go

Why is an API gateway required?

Suppose a company named XYZ developed the API for its internal purpose. There are two ways in which it exposes that API for external use:

  • Exposes it using authentication from known clients
  • Exposes it as an API as a service

In the first case, this API is consumed by the other services inside the company. Since they are internal, we don't restrict the access. But in the second case, since API details are given to the outside world, we need a broker in between to check and validate the requests. This broker is the API gateway. An API gateway is a broker that sits in between the client and the server and forwards the request to the server on passing specific conditions.

Now, XYZ has an API written in Go and also ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RESTful Web Services with Go - Second Edition

Hands-On RESTful Web Services with Go - Second Edition

Naren Yellavula
Microservices with Go

Microservices with Go

Alexander Shuiskov

Publisher Resources

ISBN: 9781788294287Supplemental Content