1 / 8

For Computer System Class 2009170901 이형규

URL Shortening. For Computer System Class 2009170901 이형규. 1. URL Shortening 이란 ? 2. URL Shortening 구현 알고리즘. Contents. URL Shortening 이란 ?. 01. 기존의 긴 URL 을 짧게 축약시켜준다 . e g ) http:// portal.korea.ac.kr/front/Intro.kpd -> http://goo.gl/AhtWz. SNS 서비스의 활성화

karan
Download Presentation

For Computer System Class 2009170901 이형규

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. URL Shortening For Computer System Class 2009170901 이형규

  2. 1. URL Shortening이란?2. URL Shortening구현 알고리즘 Contents

  3. URL Shortening이란? 01 • 기존의 긴 URL을 짧게 축약시켜준다. • eg) http://portal.korea.ac.kr/front/Intro.kpd-> http://goo.gl/AhtWz • SNS 서비스의 활성화 • 기존의 과도하게 긴 URL은 트위터와 같은 제한된 글자수를 요구하는SNS를 사용하는데 큰 걸림돌이 되었다. 이를 해소하기 위해서 요즈음 더욱 주목받고 있다. • QR코드의 활성화 • 축약된 URL의 마지막에 .qr을 입력하면 간단하게 QR코드를 생성할 수 있다.

  4. URL Shortening이란? 01 URL Shortening의 역사 및 현황 • 이미 2002년도부터 존재하였다 • Tinyurl은 2002년도에 URL축약 서비스를 내놓았다. 트위터와 제휴를 맺어 2009년 5월, 전체의 75%를 차지하였다 • Bit.ly 의 대두 • 위의 09년 5월, 트위터의 제휴업체가 Bit.ly로 바뀌었다. 그 후 업계 1위의 자리를 탈환하였다. (현재 트위터는t.co/라는 축약 URL을 사용중이다. 트위터에 올라오는 주소만 축약 가능하다.) • Google의 참여 • 온라인사업 전반을 잠식중인 구글이 역시 이 분야에도 뛰어들었다. 구글툴바와 크롬 익스텐션을 무기로 하여 크게 파이를 차지하고 있다.

  5. URL Shortening이란? 01 URL Shortening의 역사 및 현황 • goo.gl • google에서 내놓은 URL축약서비스다. 축약된 주소를 통한 유입량의 통계를 볼 수 있고 QR코드 생성기능까지 지원한다. • tinyURL • 가장 널리 알려진 업체이다. http://tinyurl.com/~~~의 꼴. Customize기능도 지원하여 이 주소가 무엇을 뜻하는지 알 수 있게 해준다. QR코드 미지원. • Bit.ly • 위의 두 방식의 통합형이다. 통계기능과 커스터마이징 기능이 존재. QR코드 제작 역시 지원한다.

  6. URL Shortening이란? 01 URL Shortening의 단점 • 출처, 연결이 불확실 • 비록 커스터마이징이 지원되긴 하지만 대다수의 지원 업체는 이를 지원하지 않는다. 모바일 디바이스 처럼 상대적으로 보안에 취약한 기기에서 아무것도 모르고 들어가기에 좋게 되어있다.

  7. URL Shortening 구현 알고리즘 02 Code(in java) ByteArrayOutputStream baos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(baos); UUID uuid = UUID.randomUUID(); dos.writeLong(uuid.getMostSignificantBits()); String encoded = new String(Base64.encodeBase64(baos.toByteArray()), "ISO-8859-1"); String shortUrlKey = StringUtils.left(encoded, 6); // returns the leftmost 6 characters // check if exists in database, repeat until it does not

  8. 감사합니다 이 문서는 나눔글꼴로 작성되었습니다. 설치하기

More Related