Book description
Learn to design and deploy fully functioning microservices for your applications from scratch using Swift, Docker, and AWS
Key Features
- Understand server-side Swift development concepts for building your first microservice
- Build microservices using Vapor 4 and deploy them to the cloud using Docker
- Learn effective techniques for enhancing maintainability and stability of your Swift applications
Book Description
The capabilities of the Swift programming language are extended to server-side development using popular frameworks such as Vapor. This enables Swift programmers to implement the microservices approach to design scalable and easy-to-maintain architecture for iOS, macOS, iPadOS, and watchOS applications.
This book is a complete guide to building microservices for iOS applications. You’ll start by examining Swift and Vapor as backend technologies and compare them to their alternatives. The book then covers the concept of microservices to help you get started with developing your first microservice. Throughout this book, you’ll work on a case study of writing an e-commerce backend as a microservice application. You’ll understand each microservice as it is broken down into details and written out as code throughout the book. You’ll also become familiar with various aspects of server-side development such as scalability, database options, and information flow for microservices that are unwrapped in the process. As you advance, you’ll get to grips with microservices testing and see how it is different from testing a monolith application. Along the way, you’ll explore tools such as Docker, Postman, and Amazon Web Services.
By the end of the book, you’ll be able to build a ready-to-deploy application that can be used as a base for future applications.
What you will learn
- Grasp server-side Swift development concepts using practical examples
- Understand the microservices approach and why Swift is a great choice for building microservices
- Design and structure mobile and web applications using microservices architecture
- Discover the available database options and understand which one to choose
- Scale and monitor your microservices
- Use Postman to automate testing for your microservices API
Who this book is for
The book is for iOS, iPadOS, and macOS developers and Swift programmers who want to understand how Swift can be used for building microservices. The book assumes familiarity with Swift programming and the fundamentals of the web, including how APIs work.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Foreword
- Contributors
- Preface
- Introduction to Microservices
- Understanding Server-Side Swift
- Getting Started with the Vapor Framework
- Planning an Online Store Application
- Creating Your First Microservice
- Application Structure and Database Design
- Writing the User Service
- Testing Microservices
- Product Management Service
- Understanding Microservices Communication
- Order Management Service
- Best Practices
- Hosting Microservices
- Docker and the Cloud
- Deploying Microservices in the Cloud
- Scaling and Monitoring Microservices
-
Assessment Answers
- Chapter 1: Introduction to Microservices
- Chapter 2: Understanding Server-Side Swift
- Chapter 3: Getting Started with the Vapor Framework
- Chapter 4: Planning an Online Store Application
- Chapter 5: Creating Your First Microservice
- Chapter 6: Application Structure and Database Design
- Chapter 7: Writing the User Service
- Chapter 8: Testing Microservices
- Chapter 9: Product Management Service
- Chapter 10: Understanding Microservices Communication
- Chapter 11: Order Management Service
- Chapter 12: Best Practices
- Chapter 13: Hosting Microservices
- Chapter 14: Docker and the Cloud
- Chapter 15: Deploying Microservices in the Cloud
- Chapter 16: Scaling and Monitoring Microservices
- Other Books You May Enjoy
Product information
- Title: Hands-On Swift 5 Microservices Development
- Author(s):
- Release date: March 2020
- Publisher(s): Packt Publishing
- ISBN: 9781789530889
You might also like
book
Hands-On Full-Stack Development with Swift
Build full-stack shopping list applications from scratch for web and mobile platforms using Xcode, Vapor, and …
book
Test-Driven Development in Swift: Compile Better Code with XCTest and TDD
Leverage Swift to practice effective and efficient test-driven development (TDD) methodology. Software testing and TDD are …
book
Building RESTful Web services with Go
Explore the necessary concepts of REST API development by building few real world services from scratch. …
book
Hands-On Server-Side Web Development with Swift
Take advantage of using the same programming language for both server and client-side with this hands-on …