7 Applying AI to existing platforms

 

This chapter covers

  • Integration patterns for serverless AI
  • Improving identity verification with Textract
  • An AI-enabled data processing pipeline with Kinesis
  • On-the-fly translation with Translate
  • Sentiment analysis with Comprehend
  • Training a custom document classifier with Comprehend

In chapters 2-5 we created systems from scratch and applied AI services from the start. Of course, the real world is not always this clean and simple. Almost all of us have to deal with legacy systems and technical debt. In this chapter we are going to examine some strategies for applying AI services to existing systems. We will start by looking at some architectural patterns for this, and from there we will develop some specific examples drawn from real world experience.

7.1 Integration patterns for serverless AI

There is no escaping the fact that real world enterprise computing is “messy.” For a medium to large enterprise, the technology estate is typically large, sprawling, and has often grown organically over time.

An organization’s compute infrastructure can be broken down along domain lines such as finance, HR, marketing, line-of-business systems, and so on. Each of these domains may be composed of many systems from various vendors, along with home-grown software, and will usually mix legacy with more modern Software as a Service (SaaS) delivered applications.

7.1.1 Pattern 1: Synchronous API

7.1.2 Pattern 2: Asynchronous API

7.1.3 Pattern 3: VPN Stream In

7.1.4 Pattern 4 VPN: Fully connected streaming

7.1.5 Which pattern?

7.2 Improving identity verification with Textract

7.2.1 Get the code

7.2.2 Text Analysis API

7.2.3 Client code

7.2.4 Deploy the API

7.2.5 Test the API

7.2.6 Remove the API