Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Swift 5 Microservices Development

You're reading from   Hands-On Swift 5 Microservices Development Build microservices for mobile and web applications using Swift 5 and Vapor 4

Arrow left icon
Product type Paperback
Published in Mar 2020
Publisher Packt
ISBN-13 9781789530889
Length 392 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ralph Kuepper Ralph Kuepper
Author Profile Icon Ralph Kuepper
Ralph Kuepper
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Introduction to Microservices 2. Understanding Server-Side Swift FREE CHAPTER 3. Getting Started with the Vapor Framework 4. Planning an Online Store Application 5. Creating Your First Microservice 6. Application Structure and Database Design 7. Writing the User Service 8. Testing Microservices 9. Product Management Service 10. Understanding Microservices Communication 11. Order Management Service 12. Best Practices 13. Hosting Microservices 14. Docker and the Cloud 15. Deploying Microservices in the Cloud 16. Scaling and Monitoring Microservices 17. Assessment Answers 18. Other Books You May Enjoy

Chapter 1: Introduction to Microservices

Questions:

  1. What is the definition of a microservice?
  2. List three reasons why microservices can be helpful.
  3. List three reasons not to choose microservices.
  4. List four differences between a monolith and microservices.

Answers:

  1. A microservice is a small business unit operating as independently as possible.
  2. Three reasons:
    1. Independently scalable
    2. Independently maintainable
    3. Decreased complexity
  3. Three reasons:
    1. Too small for a project (only one microservice).
    2. Not enough time or resources available to convert all legacy code.
    3. Increased initial work.
  4. Four differences:
    1. A monolith has one code base; each microservice has its own.
    2. Monoliths usually operate with only one database; each microservice has its own database.
    3. Monoliths are hard to scale as the entire service must be scaled, while microservices can be scaled individually.
    4. Monoliths...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime