ko-salaam / ko-salaam-api

MIT License
0 stars 1 forks source link

[Feature] 이미지 처리 #18

Open dchecheb opened 2 years ago

dchecheb commented 2 years ago

타입

이미지 URL 수집

dchecheb commented 2 years ago

리스트 조회에는 사진 4장 제한 두기

dchecheb commented 2 years ago

https://frontbackend.com/spring-boot/spring-boot-upload-file-to-filesystem

dchecheb commented 2 years ago

CDN?

콘텐츠 전송 네트워크(Content Delivery Network) 콘텐츠를 효율적으로 전달하기 위해 여러 노드를 가진 네트워크에 데이터를 저장하여 제공하는 시스템 사용자가 인터넷 상에서 가장 가까운 서버로 컨텐츠를 전송받아 트래픽이 특정 서버에 집중되지 않고 각 서버로 분산되도록 하는 기술

image

코살람은 CDN을 적용할 필요가 있나 지금? 없음. 일단 나중에 적용하도록 하고... CDN이 필요한 게 아니라 이미지 서버가 필요함

dchecheb commented 2 years ago

이미지 서버

직접 구축할 필요는 없음 무료 호스팅 서버 많음

dchecheb commented 2 years ago
alter table image
    add column place_type varchar(25) NOT NULL,
    add column img_url varchar(200) NOT NULL,
    add column img_resource varchar(200) NOT NULL;

--  관계 KEY 추가
alter table image
    add column restaurant_id uuid UNIQUE,
    add constraint FOREIGN KEY(restaurant_id) REFERENCES restaurant(id),
    add column accommodation_id uuid UNIQUE,
    add constraint FOREIGN KEY(accommodation_id) REFERENCES accommodation(id),
    add column prayerroom_id uuid UNIQUE,
    add constraint FOREIGN KEY(prayerroom_id) REFERENCES prayerroom(id);