Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject Personalize processor in ad hoc pipeline (#183)
If we create a search pipeline as part of a search request, each processor gets created as part of the search request. Since the Amazon Personalize ranking processor creates a client (with a connection pool and credential provider), this could get expensive if someone sends a flurry of search requests with inline (ad hoc) pipelines. Also, when a pipeline is created, we create each processor as a way of validating the configuration. At that point, we don't need to initialize the Personalize client, since that processor will just get garbage-collected. Signed-off-by: Michael Froh <froh@amazon.com>
- Loading branch information