Skip to main content
  • Book
  • © 2021

Traefik API Gateway for Microservices

With Java and Python Microservices Deployed in Kubernetes

Apress
  • The first book to cover Traefik

  • Guides you from fundamental concepts to applications in microservices scenarios

  • Covers cases of microservices deployed on the Kubernetes platform

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (7 chapters)

  1. Front Matter

    Pages i-xv
  2. Introduction to Traefik

    • Rahul Sharma, Akshay Mathur
    Pages 1-30
  3. Configure Traefik

    • Rahul Sharma, Akshay Mathur
    Pages 31-65
  4. Load Balancing

    • Rahul Sharma, Akshay Mathur
    Pages 67-97
  5. Configure TLS

    • Rahul Sharma, Akshay Mathur
    Pages 99-125
  6. Logs, Request Tracing, and Metrics

    • Rahul Sharma, Akshay Mathur
    Pages 127-158
  7. Traefik for Microservices

    • Rahul Sharma, Akshay Mathur
    Pages 159-190
  8. Traefik as Kubernetes Ingress

    • Rahul Sharma, Akshay Mathur
    Pages 191-245
  9. Back Matter

    Pages 247-255

About this book

Use Traefik as a load balancer or a reverse proxy for microservices-based architecture. This book covers Traefik integration for microservices architecture concerns such as service discovery, telemetry, and resiliency.

The book focuses on building an in-depth understanding of Traefik. It starts with the fundamentals of Traefik, including different load balancing algorithms available, and failure handling for application resiliency. Examples are included for the failure scenarios. TLS support is explained, including scenarios of TLS termination and TLS forwarding. Traefik supports TLS termination using Let's Encrypt. Traefik deployment in prominent microservices ecosystems is discussed, including Docker and Kubernetes.

Traefik is a language-neutral component. This book presents examples of its deployment with Java-based microservices. The examples in the book show Traefik integration with Jaeger/Zipkin, Prometheus, Grafana, and FluentD. Also covered is Traefik for Python-based services and Java-based services deployed in the Kubernetes cluster. By the end of the book, you will confidently know how to deploy and integrate Traefik into prominent microservices ecosystems.






What You Will Learn

  • Understand Traefik basics and its components
  • Explore different load balancing scenarios and TLS termination
  • Configure service discovery, circuit breakers, timeouts, and throttling
  • Monitor Traefik using Prometheus and request tracing


Who This Book Is For

Developers and project managers who have developed microservices and are deploying them in cloud and on-premise environments with Kubernetes or Docker. The book is not specifically written for any particular programming language. The examples presented use Java or Python.


Authors and Affiliations

  • Patpargunj, India

    Rahul Sharma

  • Gurgaon, India

    Akshay Mathur

About the authors

Rahul Sharma is a seasoned Java developer with over 15 years of industry experience. In his career he has worked with companies of various sizes from enterprises to startups. During this time he has developed and managed microservices on the cloud (AWS/GCE/DigitalOcean) using open source software. He is an open source enthusiast and shares his experience at local meetups. He co-authored Java Unit Testing with JUnit 5 (Apress) and Getting Started with Istio Service Mesh (Apress).

Akshay Mathur is a software engineer with 15 years of experience, mostly in Java and web technologies. Most of his career has been spent building B2B platforms for enterprises, dealing with concerns such as scalability, configurability, multi-tenancy, and cloud engineering. He has hands-on experience implementing and operating microservices and Kubernetes in these ecosystems. Currently, he enjoys public speaking and blogging on new cloud native technologies (especially plain Kubernetes) and effective engineering culture.




Bibliographic Information

  • Book Title: Traefik API Gateway for Microservices

  • Book Subtitle: With Java and Python Microservices Deployed in Kubernetes

  • Authors: Rahul Sharma, Akshay Mathur

  • DOI: https://doi.org/10.1007/978-1-4842-6376-1

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Professional and Applied Computing (R0), Apress Access Books

  • Copyright Information: Rahul Sharma, Akshay Mathur 2021

  • Softcover ISBN: 978-1-4842-6375-4Published: 28 November 2020

  • eBook ISBN: 978-1-4842-6376-1Published: 27 November 2020

  • Edition Number: 1

  • Number of Pages: XV, 255

  • Number of Illustrations: 113 b/w illustrations

  • Topics: Professional Computing, Open Source

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access