FindMyClick: From Thousands of Event Photos to One Selfie - Building an AI-Powered Photo Discovery Platform on AWS

FindMyClick: From Thousands of Event Photos to One Selfie - Building an AI-Powered Photo Discovery Platform on AWS

Discover how I built an AI-powered photo discovery platform on AWS that lets guests find their photographs using a selfie. Tested with over 10,000 real wedding photographs, the solution combines Amazon Rekognition, S3, DynamoDB, SQS and serverless services to simplify event photo sharing.

AWS Administrator@ Infocepts | AWS Community Builder
This article is written for AWS architects, cloud engineers and developers who have working knowledge of services such as Amazon S3, AWS Lambda, Amazon DynamoDB and API Gateway.
You don't need previous experience with computer vision or image-processing systems. I'll explain how the face-discovery workflow fits into the application when we reach that part of the architecture.
This is an architecture deep dive, not a step-by-step deployment lab. The focus is on a real-world problem, the decisions behind the solution, and what it takes to connect managed AWS services into a working application.


1. The problem: Finding yourself in thousands of photographs shouldn't be another task
Think about attending a wedding.
The photographer captures hundreds, sometimes thousands, of photographs throughout the event. A few days later, the gallery link arrives. Everyone is excited to see the pictures.
And then comes the familiar problem.
You open the gallery, start scrolling, check one photograph, then another, and another. You might find a few pictures of yourself, but what about the photographs taken during the group celebrations, the candid moments, or the pictures where you weren't even aware the camera was pointing at you?
Now imagine doing this with 5,000 or 10,000 photographs.
For guests, finding their own photographs becomes time-consuming. For photographers, sharing the complete collection is only one part of the job. They may also receive repeated requests from guests asking them to locate particular pictures.
The problem isn't that photographs are difficult to store. The problem is that a conventional photo gallery doesn't understand what a guest is actually looking for.
A gallery can organise photographs by folders, filenames or upload sequence, but guests generally don't know any of those details.
What if guests could search for themselves instead of searching through photographs?
That question led to FindMyClick.
2. What we wanted to build: Search by face, not by filename
FindMyClick is an event-oriented photo-sharing and discovery application built using React and AWS services.
The idea is straightforward:
A guest accesses their event, uploads a selfie, and receives photographs that potentially contain their face.
Instead of browsing the entire gallery, the guest gets a smaller, more relevant collection.
The intended experience looks like this:
  1. A photographer uploads event photographs.
  1. The application processes the photographs and makes detected faces searchable.
  1. A guest accesses the event using its access mechanism.
  1. The guest submits a selfie.
  1. The backend searches the event's indexed faces for potential matches.
  1. The application maps matching faces back to their photographs.
  1. The guest views thumbnails and downloads the original photographs they want.
The important distinction is that face matching and photograph retrieval are two different responsibilities.
Identifying a potential face match is not enough. The application must also know which photograph contains that face, which event the photograph belongs to, and how the guest can securely access it.
That relationship became one of the central design considerations in FindMyClick.
3. The architecture: Design around the workflow, not the AWS service list
Before choosing services, I separated the application into four responsibilities:
  • Guest interaction.
  • Application request handling.
  • Photograph storage and asynchronous processing.
  • Face discovery and photograph delivery.
This separation matters because the application handles two different types of workloads.
A guest searching for photographs expects an interactive response. Processing a large collection of newly uploaded images is a different workload and should not hold up guest-facing requests.
Diagram 1 — Overall system architecture

The architecture uses:
  • React for the frontend.
  • Amazon API Gateway REST APIs for application requests.
  • Python-based AWS Lambda functions for backend operations.
  • Amazon S3 for photograph storage.
  • Amazon DynamoDB for metadata, face mappings and image-processing state.
  • Amazon Rekognition for face analysis and search.
  • Amazon SQS for asynchronous processing and a dead-letter queue for failed messages.
  • Amazon CloudFront for thumbnail delivery.
The separation gives each component a clear responsibility. It also allows the request-handling and image-processing workloads to evolve independently.
3.1 Amazon S3: Store photographs according to how they are used
The application uses an S3 bucket named findmyclick-inventory.
One design consideration was that not every image in the application serves the same purpose.
An original event photograph, a gallery thumbnail and a guest-submitted selfie have different requirements.
The object organisation separates these image types:
  • original/ — original event photographs.
  • thumbnail/ — smaller images used for gallery previews.
  • selfie/ — guest-submitted images used for the search workflow.
Why does this matter?
Imagine a guest browsing 100 matching photographs. Downloading the full-resolution version of every photograph just to display a gallery would waste bandwidth and increase transfer costs.
Smaller thumbnails provide a more efficient browsing experience. The original image can be requested separately when the guest chooses to download it.
There is also a privacy consideration. A guest selfie is submitted for a specific search purpose. It should not automatically have the same retention period as the original event photographs.
Separating the object types gives the application a clearer foundation for different access and lifecycle policies.
3.2 DynamoDB: Connect faces, photographs and processing state
Storing photographs in S3 solves the storage problem, but it doesn't tell the application how to find a photograph from a face-search result.
For that, FindMyClick uses three DynamoDB tables.
Table
Responsibility
FindMyClick-Metadata
Application and photograph metadata
FindMyClick-FaceIndex
Mapping between indexed faces and application photographs
FindMyClick-ImageState
Image-processing lifecycle state
Why separate these responsibilities?
Consider a photograph containing three people.
The face-analysis service may identify three different faces in that single photograph. When a guest searches for one of those faces, the application needs to translate the matching face identifier into the photograph that should appear in the gallery.
The face-index mapping provides that relationship.
The image-state table addresses a different problem: an uploaded photograph isn't necessarily a searchable photograph yet.
A photograph may exist in S3 while its indexing work is still pending or has failed. The application needs to distinguish between these states rather than assuming that every uploaded image is immediately available for discovery.
Keeping processing state separate makes that distinction explicit.
3.3 Amazon Rekognition: Turn faces into searchable references
Amazon Rekognition provides the face-analysis capability behind FindMyClick.
The application uses the concept of a face collection to make indexed faces searchable.
There are two sides to this workflow.
First: Prepare the event photographs.
The photographs are processed, faces are identified, and the resulting face references are associated with the corresponding application photographs.
Second: Search using a guest selfie.
When a guest submits a selfie, the backend uses the face-search capability to find potentially matching indexed faces.
The application then uses its DynamoDB mapping to retrieve the relevant photograph records.
This distinction is important: Rekognition provides the face-matching capability, but the application remains responsible for connecting a match to an event and an actual photograph.
A face identifier alone isn't a useful gallery result.
There is also a limitation worth understanding. Face matching is not a guarantee of identity. Lighting, camera angle, image quality, occlusion and other conditions can affect results.
The application should therefore present potential matches for the guest to review rather than treating every result as definitive.
3.4 Amazon SQS: Don't make guests wait for image processing
One of the important architectural considerations is the difference between uploading a photograph and preparing it for discovery.
If a photographer uploads a large collection, processing every photograph synchronously as part of an interactive request would create an unnecessary dependency between uploading and guest experience.
FindMyClick includes an SQS-based face-indexing design with:
  • findmyclick-face-index-queue
  • findmyclick-face-index-dlq
The main queue provides a buffer for image-indexing work. A dead-letter queue provides a separate destination for messages that cannot be processed successfully under the configured retry policy.
Why is this useful?
Suppose a photographer uploads a large collection in a short period. Instead of requiring all photographs to finish processing immediately, the queue allows processing work to be handled separately from guest requests.
If a message repeatedly fails, the dead-letter path provides a way to investigate it instead of allowing problematic work to remain in an endless retry cycle.
The retry configuration, visibility timeout, redrive policy and worker concurrency must be validated against the expected event workload. The queue design alone does not prove that the processing pipeline can handle every event size.
3.5 AWS Lambda and API Gateway: Keep the application operations separate
The frontend uses React, while the backend exposes REST APIs through Amazon API Gateway.
Python-based Lambda functions implement the application operations.
The backend is responsible for operations such as:
  • Guest-session handling.
  • Photograph retrieval.
  • Face search.
  • Image downloads.
  • Image-processing operations.
I chose this approach because the application is naturally divided into individual operations.
A guest requesting photographs doesn't require a continuously running application server. The backend can execute the required operation when an API request arrives.
The trade-off is that serverless applications still need careful consideration of concurrency, execution duration, cold starts, throttling, downstream service limits and error handling.
Managed services reduce infrastructure-management work; they don't remove the need to engineer for failure.
3.6 CloudFront and presigned URLs: Browsing isn't downloading
There are two different photo-delivery experiences.
A guest may browse dozens of thumbnails but download only a handful of original photographs.
FindMyClick uses CloudFront for thumbnail delivery and presigned S3 URLs for access to original photographs.
CloudFront provides a delivery layer for gallery images. Presigned URLs allow the backend to grant time-limited access to original S3 objects without making those objects publicly accessible.
The security check must happen before the backend generates a download URL.
The application must validate the guest session and confirm that the requested photograph belongs to the guest's event.
A presigned URL is a temporary access mechanism, not a replacement for application-level authorization.


**4. The guest journey: What happens after someone uploads a selfie? **


This is where the different components come together.
A guest first enters through the event access flow. The application creates a session and uses a Bearer token for subsequent requests.
The session information is maintained in DynamoDB with a TTL (time to live), which allows expired session records to be removed automatically.
When the guest submits a selfie, the frontend sends the request to the backend through API Gateway.
The backend validates the session and event context before performing the search operation.
Rekognition identifies potential matching faces. DynamoDB then helps the application map those results to the corresponding photographs.
The frontend receives the relevant results and displays the thumbnails.
When the guest chooses to download an original photograph, the backend authorizes the request and provides a presigned URL.
Notice that the guest never needs to know the S3 bucket name, object key, face identifier or internal database structure.
The application handles those details behind the scenes.
5. The engineering challenges: What the application actually needs to get right
Building this application wasn't simply about connecting an image-storage service to a face-recognition service.
The difficult part was maintaining the relationships between different pieces of information throughout the workflow.
Challenge 1: A face match must lead to the correct photograph
A face-search result is not itself a photograph.
The application needs a reliable relationship between the indexed face and the image from which it originated.
How the design addresses it:
The FindMyClick-FaceIndex table maintains the mapping needed to connect face-search results with application photographs.
This allows the backend to return meaningful photo results instead of exposing Rekognition identifiers directly to the frontend.
Challenge 2: Uploaded doesn't mean searchable
A photograph can be present in S3 without having completed face indexing.
If the application treats every uploaded photograph as immediately searchable, guests can receive incomplete results while processing is still underway.
How the design addresses it:
The FindMyClick-ImageState table tracks image-processing state separately from photograph metadata.
The SQS-based processing design also separates indexing work from interactive guest requests.
The remaining work is to validate the full processing lifecycle, including retries and recovery from failed messages.
Challenge 3: Protect photographs without making the experience complicated
Event photographs are personal content. A guest accessing one event should not automatically gain access to another event's photographs.
How the design addresses it:
The application uses event-associated guest sessions, backend authorization checks and presigned URLs for original-image downloads.
This creates an application-level access boundary while keeping the guest experience straightforward.
Event isolation must still be tested against manipulated API requests, expired sessions and attempts to access photographs from unrelated events.
Challenge 4: Make browsing efficient without sacrificing original quality
Serving original photographs for every gallery preview would create unnecessary data transfer.
How the design addresses it:
The application separates thumbnails from original photographs and uses CloudFront for thumbnail delivery.
Original photographs are retrieved separately through authorized, time-limited URLs.
This supports a more efficient browsing experience while preserving access to the original image when it is needed.


6. Security and privacy are part of the application, not an afterthought
FindMyClick processes photographs and guest-submitted selfies. These are personal images, so security decisions must follow the entire workflow.
Consider what happens when a guest submits a selfie.
The application needs to ensure that the selfie is used for the intended search, that access is restricted, and that it isn't retained indefinitely without a clear reason.
Similarly, original photographs should not become publicly accessible just because the application needs to display them.
The current design uses private S3 object storage, backend session validation and presigned URLs for original-photo downloads.
There are additional controls that need to be verified before a wider deployment:
  • Least-privilege IAM permissions for individual Lambda functions.
  • Encryption configuration for stored photographs and application data.
  • API throttling and abuse prevention.
  • Secure token handling and expiration.
  • Explicit retention and deletion policies for guest selfies.
  • CloudFront origin and viewer-access controls.
  • Logging that avoids exposing sensitive image data or session tokens.
The important point is that securing the bucket alone is insufficient.
A photograph passes through upload, processing, indexing, searching, preview and download. Each stage needs an appropriate access-control decision.


7. Taking the architecture beyond a proof of concept: Testing with 10,000+ wedding photographs
An architecture diagram can explain how a system is supposed to work. But I wanted to see how the application would behave with an actual collection of photographs rather than relying entirely on sample images.
For this, I used my own wedding photographs.
The collection contains more than 10,000 photographs, providing a real-world dataset for implementing and exercising the FindMyClick workflow.
This was an important milestone because event photography isn't a collection of identical images. It contains individual portraits, group photographs, candid moments, different camera angles, changing lighting conditions and photographs containing multiple people.
These variations make face-based discovery a more interesting engineering problem than simply uploading a few sample images and demonstrating a successful match.
What I implemented and tested
The implementation covers the main photograph discovery lifecycle:
  1. Photograph ingestion: Event photographs are uploaded to Amazon S3.
  1. Asynchronous processing: S3-to-SQS integration places indexing work onto the processing queue.
  1. Image processing: A Lambda consumer processes queued messages and invokes the face-indexing workflow.
  1. Face indexing: Amazon Rekognition indexes detected faces into the configured collection.
  1. Metadata association: DynamoDB maintains the relationship between indexed faces and their corresponding photographs.
  1. Guest discovery: A guest submits a selfie and the backend performs face search against the indexed collection.
  1. Photo retrieval: Matching face references are mapped back to the original photographs.
  1. Photo delivery: Guests can view the resulting gallery and request original photographs through the application's download flow.
The SQS processing workflow also includes retry handling and a dead-letter queue, providing a defined failure path for messages that cannot be processed successfully.
Why using my own wedding photographs mattered
A real event collection gives the application a more representative workload than a handful of carefully selected demonstration images.
It allows the implementation to be exercised against photographs with different characteristics, including group compositions and varying photographic conditions.
More importantly, it validates the complete product idea: a guest should be able to start with a selfie and discover photographs from a large event collection without manually browsing thousands of images.
I haven't established a formal face-matching accuracy percentage or published a benchmark for average processing and search times. Those require a repeatable measurement methodology and should not be inferred simply from the size of the photo collection.
Nevertheless, using more than 10,000 personal event photographs gave me a practical foundation for developing and testing the end-to-end workflow.
8. What is working and what comes next
FindMyClick has progressed beyond an architecture proposal. Its core guest-facing workflow has been implemented, including the React frontend, AWS backend, photograph storage, asynchronous indexing, Rekognition-based face search, metadata mapping and photo delivery.
The next stage is to evolve the working application into a repeatable platform for photographers and their customers.
I'm currently focusing on an administration portal that will manage photographers, clients and events.
The intended workflow is to create a photographer, associate a client, create an event and automatically provision the event's storage structure, metadata and Rekognition collection.
Once the event is ready, the photographer should only need to upload photographs. The existing processing workflow should take care of the rest, leaving guests free to discover their photographs.
Before broader commercial deployment, I also want to complete systematic testing of processing throughput, failure recovery, event-level authorization, face-search quality and cost behaviour.
The objective is not simply to demonstrate that AWS services can be connected together. It is to turn a working solution to a real problem into a platform that photographers can use repeatedly without requiring manual AWS administration.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article