Greenstand/treetracker-infrastructure

Deploy the image-api to another domain.

Open

#174 opened on 2023年6月15日

GitHub で見る
 (0 comments) (0 reactions) (1 assignee)HCL (40 forks)auto 404
enhancementgood first issuekubernetes

Repository metrics

Stars
 (23 stars)
PR merge metrics
 (PR metrics pending)

説明

For service like this: https://prod-k8s.treetracker.org/images/img/treetracker-production-images.s3.eu-central-1.amazonaws.com/w=250,/2022.11.29.12.18.43_18.29646668303758_-73.54841929860413_6edf287a-4eae-44d2-9bf6-89c2da3328d1_IMG_20221127_075015_8954894720936228485.jpg in the client side, it is possible we trigger a lot of request like this to show images, so it is possible the image-api will block others, for example, this one: https://prod-k8s.treetracker.org/api/admin/api/trees?filter={%22where%22:{%22approved%22:false,%22active%22:true,%22organizationId%22:194,%22stakeholderUUID%22:%2235e1c708-267b-4dd9-84be-868a954b0807%22},%22order%22:[%22id%20desc%22],%22limit%22:24,%22skip%22:240,%22fields%22:{%22uuid%22:true,%22imageUrl%22:true,%22lat%22:true,%22lon%22:true,%22id%22:true,%22timeCreated%22:true,%22timeUpdated%22:true,%22active%22:true,%22approved%22:true,%22planterId%22:true,%22deviceIdentifier%22:true,%22planterIdentifier%22:true,%22speciesId%22:true,%22tokenId%22:true,%22morphology%22:true,%22age%22:true,%22captureApprovalTag%22:true,%22rejectionReason%22:true,%22note%22:true}} And the browser has limitation on con-current request: https://stackoverflow.com/a/29564247/7212713 So we need to avoid that the image-api impacts other service, and it make sense too to view image-api as a resource rather than a API, so the domain could be: prod-k8s-resource.treetracker.org

コントリビューターガイド