PHP Microservices
eBook - ePub

PHP Microservices

Carlos Perez Sanchez, Pablo Solar Vilarino

Share book
  1. 392 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

PHP Microservices

Carlos Perez Sanchez, Pablo Solar Vilarino

Book details
Book preview
Table of contents
Citations

About This Book

Transit from monolithic architectures to highly available, scalable, and fault-tolerant microservicesAbout This Book‱ Build your own applications based on event-driven microservices and set them up on a production server.‱ Successfully transform any monolithic application into a microservice.‱ Monitor the health of your application, prevent downtime, and reduce costs.Who This Book Is ForPHP developers who want to build scalable, highly available, and secure applications will find this book useful. No knowledge of microservices is assumed.What You Will Learn‱ Set up a development environment using the right strategies and tools.‱ Learn about application design and structure to start implementing your application.‱ Transform a monolithic application into microservices.‱ Explore the best way to start implementing your application using testing.‱ Understand how to monitor your microservices, handle errors, and debug the application.‱ Deploy your finished application into a production environment and learn how to solve common problems.‱ Know how to scale your application based on microservices once it is up–and-running.In DetailThe world is moving away from bulky, unreliable, and high-maintenance PHP applications, to small, easy-to-maintain and highly available microservices and the pressing need is for PHP developers to understand the criticalities in building effective microservices that scale at large. This book will be a reliable resource, and one that will help you to develop your skills and teach you techniques for building reliable microservices in PHP.The book begins with an introduction to the world of microservices, and quickly shows you how to set up a development environment and build a basic platform using Docker and Vagrant. You will then get into the different design aspects to be considered while building microservices in your favorite framework and you will explore topics such as testing, securing, and deploying microservices. You will also understand how to migrate a monolithic application to the microservice architecture while keeping scalability and best practices in mind. Furthermore you will get into a few important DevOps techniques that will help you progress on to more complex domains such as native cloud development, as well as some interesting design patterns.By the end of this book you will be able to develop applications based on microservices in an organized and efficient way. You will also gain the knowledge to transform any monolithic applications into microservices.Style and approachFilled with code that you can start typing straightaway, this book will take you through building, testing, securing, and deploying microservices in the most practical way possible. The focus of the book is more inclined towards showing you how it's done, rather than with what to do, although you will get a good idea of those tools most widely used to build microservices.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is PHP Microservices an online PDF/ePUB?
Yes, you can access PHP Microservices by Carlos Perez Sanchez, Pablo Solar Vilarino in PDF and/or ePUB format, as well as other popular books in Informatik & Programmierung in PHP. We have over one million books available in our catalogue for you to explore.

Information

Year
2017
ISBN
9781787124035

PHP Microservices


PHP Microservices

Copyright © 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: March 2017
Production reference: 1240317
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B32PB, UK.
ISBN 978-1-78712-537-7
www.packtpub.com

Credits

Authors
Carlos PĂ©rez SĂĄnchez
Pablo Solar Vilariño
Copy Editor
Shaila Kusanale
Reviewers
Gabor Zelei
Project Coordinator
Vaidehi Sawant
Commissioning Editor
Aaron Lazar
Proofreader
Safis Editing
Acquisition Editor
Divya Poojari
Indexer
Mariammal Chettiyar
Content Development Editor
Anurag Ghogre
Graphics
Jason Monteiro
Technical Editor
Jijo Maliyekal
Subhalaxmi Nadar
Production Coordinator
Melwyn Dsa

About the Authors

Carlos PĂ©rez SĂĄnchez is a backend web developer with more than 10 years of experience in working with the PHP language. He loves finding the best solution for every single problem on web applications and coding, looking to push forward the best practices for development, ensuring a high level of attention to detail.
He has a bachelors degree in computer engineering from the University of Alicante in Spain, and he has worked for different companies in the United Kingdom and Spain. He has also worked for American companies and is currently working for Pingvalue. You can connect with him on LinkedIn at https://www.linkedin.com/in/mrcarlosdev.
To my girlfriend, Becca, family, and friends—thanks for your unconditional support in every single stage of my life.
Pablo Solar Vilariño is a software developer who became interested in web development when PHP 4 started becoming a popular language.
Over the last few years, he has worked extensively with web, cloud, and mobile technologies for medium-to-large companies and is currently an e-commerce developer at NITSNETS.
He has a passion for new technologies, code standards, scalability, performance, and open source projects.
Pablo can be approached online at https://pablosolar.es/.
To everyone who has ever believed in me.

About the Reviewer

Gabor Zelei is a polyglot software engineer with a versatile background in both software engineering and operations. He’s had a decade-long love for PHP and LAMP/LEMP stacks in general; he enjoys working with upcoming technologies and methodologies and is a big fan of clean, well-structured and standards-compliant code.
During his career, he has worked for small startups as well as large enterprise companies. Currently, he lives in Dublin, Ireland, where he works as a senior software developer for a leading online marketplace company.

www.PacktPub.com

For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
www.PacktPub.com
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.

Why subscribe?

  • Fully searchable across every book published by Packt
  • Copy and paste, print, and bookmark content
  • On demand and accessible via a web browser

Customer Feedback

Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1787125378.
If you'd like to join our team of regular reviewers, you can e-mail us at [email protected]. We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products!

Preface

Microservices are the new kids on the block. They are a way of solving problems, but it does not mean that they will always be the best solution. Microservices are a full and complex architecture that you need to understand deeply in order to be able to apply them successfully in the real world.
We know that understanding and having everything in place for microservices can take time and can be very complex, so for this reason we wrote this book--to give you a small guide to microservices, from A to Z. This book will only be a glimpse of what you can do with microservices, but we hope that it will be at least a helpful start into this world.
We will start our journey in this book by explaining the foundations of this architecture, the basic knowledge you will need to have. As you advance through the book, we will be increasing the level of difficulty. However, we will guide you through every step of the process, so at the end of the book you will be able to know whether a microservice architecture is the best solution for your problem and how can you apply this architecture.
Enjoy your microservices!

What this book covers

Chapter 1, What are Microservices?, will teach you all the basics of microservices.
Chapter 2, Development Environment, will take you through setting up your development machine to build microservices successfully.
Chapter 3, Application Design, will help you start designing your application, creating the foundation of your project.
Chapter 4, Testing and Quality Control, looks at how important testing your application is and how can you add tests to your application.
Chapter 5, Microservices Development, will cover building a microservices application, explaining each step involved.
Chapter 6, Monitoring, covers how to monitor your application so that you can always know how your application is behaving.
Chapter 7, Security, focuses on how you can add an extra layer of complexity to your application to make it more secure.
Chapter 8, Deployment, explains how you can deploy your application successfully.
Chapter 9, From Monolithic to Microservices, discusses an example of how a monolithic application can be transformed into a microservice.
Chapter 10, Strategies for Scalability, outlines how you can create a scalable application.
Chapter 11, Best Practices and Conventions, will refresh your knowledge about the best practices and conventions you should use in an application.
Chapter 12, Cloud and DevOps, looks at the different cloud providers and the DevOps world.

What you need for this book

To follow along with this book, you’ll need a computer with an Internet connection to download the required software and Docker images. At some point, you will need at least a text editor or an IDE, and we highly recommend PHPStorm for this job.

Who this book is for

This book is for experienced PHP developers who want to go a step ahead in their careers and start building successful scalable and maintainable applications, all based on microservices. After reading the book, they will be able to know whet...

Table of contents