Hands-On Swift 5 Microservices Development: Build microservices for mobile and web applications using Swift 5 and Vapor 4 - Programming Ebook

Latest

Download Programming Ebook

Wednesday, March 18, 2020

Hands-On Swift 5 Microservices Development: Build microservices for mobile and web applications using Swift 5 and Vapor 4

Hands-On Swift 5 Microservices Development
Hands-On Swift 5 Microservices Development

Book Details 
             Title:Hands-On Swift 5 Microservices Development: Build microservices for mobile and web applications using Swift 5 and Vapor 4
      ISBN-10978-1789530889
         AuthorRalph Kuepper
    Language: English
        SubjectSwift / Computers & Technology / Programming / Apple Programming
No. of pages: 392
         Format: PDF, EPUB, Souce code



Hands-On Swift 5 Microservices Development
Build microservices for mobile and web applications using Swift 5 and Vapor 4 

Preface

Vapor, written in Swift, is one of the best frameworks available for building scalable and maintainable web applications. Since Swift compiles to a native app, it provides excellent performance while keeping code clean, readable, and easy to learn. It is particularly suited for microservices as Vapor was written with microservices in mind.
Hands-On Swift 5 Microservices Development aims to teach you how to build a next- generation web application. We will work through the development of an e-commerce backend that is written in Swift using the Vapor framework. You will explore how microservices operate together best and what is important for them.

We'll start by introducing microservices first and explaining how they operate. Then we will look at Swift on the server and which options we have. After that, we will combine the two and start working on Swift microservices. Throughout the course of the rest of the book, we will cover everything from writing user management services all the way to deploying the services on cloud platforms. After reading this book, you should have everything you need to write your own applications.

Who this book is for

Hands-On Swift 5 Microservices Development has been written for any Swift developers, either iOS, macOS, tvOS, watchOS, or iPadOS, who want to use the same language they have learned to love for server backends as well. If you also already know some server-side Swift, you might find this book interesting as it introduces how to write microservices. Knowing a little bit of Swift is required to read this book but you don't need to know it all; we will go over everything you need as long as you know basic Swift.

What this book covers

Chapter 1, Introduction of Microservices, starts off the book by introducing the concept of microservices and how they are used. Besides the concept itself, some real-life examples are examined and used to illustrate the value of microservices.

Chapter 2, Understanding Server-Side Swift, deals with the current state of Swift on the server, taking a deep look into the internals of Swift and its appeal for server development. The unique features of Swift 5 are also addressed in light of server development.

Chapter 3, Getting Started with the Vapor Framework, introduces Vapor as the leading framework for server-side Swift, exploring how Vapor operates and what Vapor applications look like.

Chapter 4, Planning an Online Store Application, starts the process of writing our example backend for an e-commerce app. We will plan it to demonstrate how microservice applications should be planned.

Chapter 5, Creating Your First Microservice, guides you on how to develop your first microservice. We will write a template service that we can use to develop the services of our demo application.

Chapter 6, Application Structure and Database Design, walks you through setting your system up for microservices, taking a quick look at Docker environments. How to run microservices is also discussed to allow easy microservice development.

Chapter 7, Writing the User Service, begins to put everything together by writing the first service of our e-commerce backend. A user service serves as the central user authority to verify users and in this chapter, we go into a detailed discussion about what this looks like.

Chapter 8, Testing Microservices, deals with the concept of testing microservices and how that is best done. We will look into unit and functional testing and which is used when.

Chapter 9, Product Management Service, covers writing our second microservice for the backend. Products are a central element in e-commerce and this chapter discusses what a service for such objects looks like.

Chapter 10, Understanding Microservices Communication, explains that when our microservices need to communicate, we want to maintain some rules. In this chapter, we look at what, exactly, inner microservice communication should look like and what to avoid.

Chapter 11, Order Management Service, uses the knowledge from the previous chapters to write a service that actually communicates with other services. We also address how external services can be integrated.

Chapter 12, Best Practices, discusses some general best practices for Swift, but specifically for microservices.

Chapter 13, Hosting Microservices, deals with the fact that hosting microservice applications is not the most trivial task. In this chapter, we explore what hosting microservice applications look like and what we need to do so.

Chapter 14, Docker and the Cloud, follows on from learning about the general hosting of microservices by looking at which cloud providers enable us to do it and how.

Chapter 15, Deploying Microservices in the Cloud, covers bringing our example backend online. We will walk through the entire setup on AWS ECS and will then set up a Continuous Deployment (CD) to automatically deploy our code.

Chapter 16, Scaling and Monitoring Microservices, discusses how we can scale microservices in cloud setups. We will take a look at the most common cloud providers and their strategies. 



No comments:

Post a Comment