which is the best option for upload person profile photo images and search ?
Three options of Implementation are
-
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
-
put image base64 (fig blue circle)
-
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
}]