Book Image

Building Serverless Architectures

By : Cagatay Gurturk
Book Image

Building Serverless Architectures

By: Cagatay Gurturk

Overview of this book

Over the past years, all kind of companies from start-ups to giant enterprises started their move to public cloud providers in order to save their costs and reduce the operation effort needed to keep their shops open. Now it is even possible to craft a complex software system consisting of many independent micro-functions that will run only when they are needed without needing to maintain individual servers. The focus of this book is to design serverless architectures, and weigh the advantages and disadvantages of this approach, along with decision factors to consider. You will learn how to design a serverless application, get to know that key points of services that serverless applications are based on, and known issues and solutions. The book addresses key challenges such as how to slice out the core functionality of the software to be distributed in different cloud services and cloud functions. It covers basic and advanced usage of these services, testing and securing the serverless software, automating deployment, and more. By the end of the book, you will be equipped with knowledge of new tools and techniques to keep up with this evolution in the IT industry.
Table of Contents (10 chapters)

Creating the suggester

Suggesters are one of the coolest features of CloudSearch that you can use to build an autocomplete system. We will create a suggester for the username field so that we can use it in a search field for our forum application.

To create a suggester, click on the Suggesters link on the left column and then on the Add Suggester button:

Here, you have to give a name to the suggester (we set username_suggester in our case) and a source field to create the suggester from. You can also select the Fuzzy Matching option that will tolerate typo errors and bring more similar results even though the keyword does not start with the given parameter.

After creating the suggester, CloudSearch should again index the documents, but as we do not have many documents at the moment, it should not take a lot of time.