Which is the best option for upload photo images and search?

which is the best option for upload person profile photo images and search ?
Three options of Implementation are

  1. put image base64 (fig green circle) string data in dynamodb table as new field of type Map list for corresponding person id row field ) as stream into Elasticsearch

  2. put image base64 (fig blue circle) string data in ES as new field of type as above for corresponding person id existing row field.

  3. Store images in s3 (fig red circle) and put s3 image URL or base64 string data in dynamodb table as new field of type Map list for corresponding person id row field as stream into Elasticsearch
    Elastic Search new image index with following data

    "id": "existing person id details", 
    
    "images": [{
    
                guid: @guid,
    
                data: "s3 image url or base64 string data",
    
                timestamp :  @timestamp 
    
            },{
    
                guid: @guid,
    
                data: "asdfghjkl;qwertyuiopxcvbnm"",
    
                timestamp :  @timestamp 
    
            },{
    
                guid: @guid,
    
                data: "ererdfffd;qwertyuiopxcvbnm"",
    
                timestamp :  @timestamp1 
    
            }]
    

image
image

Is this related to What will be the mapping and DSL for creating a organisation employee profile user with maximum upload of 3 photos for storing and searching his photos please of image with timestamp, which has quite a few responses to the same question?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.