Thank you @Jason Bosco for the reply. I believed in ECS if we use ec2 launch type we can have EFS as persistent disk, but anyway I am not finding a clean way to maintain the connection between the ecs tasks to form a cluster.
Also one more doubt like how much time it takes to reload all the index to in memory from the drive if we restart typesense any time.