SlideShare a Scribd company logo
1 of 14
Download to read offline
App Engine
 Service
App Engine Service

•   Memcache service
•   URL Fetch service
•   Image service
•   Mail API
•   XMPP service
Memcache Service
• Jcache
   - 메모리 캐시를 위한 표준 인터페이스
• Key / Value
• Expiration
• 앱 엔진의 Memcache 삭제
     1) 메모리 부족
     2) 명시적 데이터 삭제
     3) 애플리케이션 중단
Memcache 구성 설정

Cache cache = null;
Map props = new HashMap();
props.put(GCacheFactory.EXPIRATION_DELTA, 3600);
props.put(MemcacheService.SetPolicy.ADD_ONLY_IF_NOT_PRESENT, true);

try {
    CacheFactory cacheFactory =
          CacheManager.getInstance().getCacheFactory();
    Cache = cacheFactory.createCache(props);
} catch (CacheException e) {
    resp.getWriter().println(e.getMessage());
}
캐시 통계


CacheStatistics stats = cache.getCacheStatistics();
int hits = stats.getCacheHits();
URL Fetch

• 앱 엔진에서 특별히 제공하는
 서비스는 아님
• 기졲 자바에서 사용하던 패턴을
 그대로 사용
URL Fetch Code

URL url = new URL("http://www.google.com/");
BufferedReader reader = new BufferedReader(new
        InputStreamReader(url.openStream()));
String line;
while((line = reader.readLine()) != null) {
   resp.getOutputStream().println(line);
}
Images Service


• 서버측에서 이미지 조작
App Engine Image API
Package -
     com.google.appengine.api.images
• Image
• ImageService
• ImageServiceFactory
• Transform

DataStore
- com.google.appengine.api.datastore.Blob
Image 조작 코드


Transform flip = ImagesServiceFactory.makeHorizontalFlip();
Image newImage = imagesService.applyTransform(flip, origImage);
예제 Class 들

•   ImageObject
•   ImageSource
•   ImageTransform
•   PMF
이미지 변형 기능

•   Resize
•   Rotate
•   Flip Horizontally
•   Flip Vertically
•   Crop
•   I’m feeling Lucky
Mail API

• JavaMail Interface
• Sender
  Administration – Permissions
• 타 메일서비스 접속 기능 제외
• App Engine에 배포된 상태에서만 동작
XMPP Service

• Google Talk
  - ID 등록
   cosmosappservice@appspot.com
• Jabber

More Related Content

Viewers also liked (14)

Community dollars
Community dollarsCommunity dollars
Community dollars
 
Slideshow Resume
Slideshow ResumeSlideshow Resume
Slideshow Resume
 
Project Funding Guidelines
Project Funding GuidelinesProject Funding Guidelines
Project Funding Guidelines
 
معرض الرسم
معرض الرسممعرض الرسم
معرض الرسم
 
Research into TV Listing Guides
Research into TV Listing GuidesResearch into TV Listing Guides
Research into TV Listing Guides
 
Digipak eval
Digipak evalDigipak eval
Digipak eval
 
Koje engleske kraljeve je Šekspir dramatizovao?
Koje engleske kraljeve je Šekspir dramatizovao?Koje engleske kraljeve je Šekspir dramatizovao?
Koje engleske kraljeve je Šekspir dramatizovao?
 
Aa
AaAa
Aa
 
Epikdave datapreso-2011
Epikdave datapreso-2011Epikdave datapreso-2011
Epikdave datapreso-2011
 
Evaluation q6
Evaluation q6Evaluation q6
Evaluation q6
 
Slideshare
SlideshareSlideshare
Slideshare
 
Anahi academic-presentation
Anahi academic-presentationAnahi academic-presentation
Anahi academic-presentation
 
هيا نطير الطيارة الورقية
هيا نطير الطيارة الورقيةهيا نطير الطيارة الورقية
هيا نطير الطيارة الورقية
 
கிரிமினல் குற்றவாளிகளின் தந்திரங்கள் Criminal focus
கிரிமினல் குற்றவாளிகளின் தந்திரங்கள்  Criminal focusகிரிமினல் குற்றவாளிகளின் தந்திரங்கள்  Criminal focus
கிரிமினல் குற்றவாளிகளின் தந்திரங்கள் Criminal focus
 

Similar to App engine service

Html5 앱과 웹사이트를 보다 빠르게 하는 50가지
Html5 앱과 웹사이트를 보다 빠르게 하는 50가지Html5 앱과 웹사이트를 보다 빠르게 하는 50가지
Html5 앱과 웹사이트를 보다 빠르게 하는 50가지
yongwoo Jeon
 
F3 네이버오픈api만드는매쉬업
F3 네이버오픈api만드는매쉬업F3 네이버오픈api만드는매쉬업
F3 네이버오픈api만드는매쉬업
NAVER D2
 
Hacosa js study 4주차
Hacosa js study 4주차Hacosa js study 4주차
Hacosa js study 4주차
Seong Bong Ji
 

Similar to App engine service (20)

N02 gae v1.1_20110220
N02 gae v1.1_20110220N02 gae v1.1_20110220
N02 gae v1.1_20110220
 
20131217 html5
20131217 html520131217 html5
20131217 html5
 
2Naver Open Android API Translation At DCamp
2Naver Open Android API Translation At DCamp2Naver Open Android API Translation At DCamp
2Naver Open Android API Translation At DCamp
 
Create-React-App으로 SSR을 구현하며 배운 점 (feat. TypeScript)
Create-React-App으로 SSR을 구현하며 배운 점 (feat. TypeScript)Create-React-App으로 SSR을 구현하며 배운 점 (feat. TypeScript)
Create-React-App으로 SSR을 구현하며 배운 점 (feat. TypeScript)
 
구글 앱 엔진을 이용한 소셜네트워크게임(SNG) 개발(2)
구글 앱 엔진을 이용한 소셜네트워크게임(SNG) 개발(2)구글 앱 엔진을 이용한 소셜네트워크게임(SNG) 개발(2)
구글 앱 엔진을 이용한 소셜네트워크게임(SNG) 개발(2)
 
Html5 앱과 웹사이트를 보다 빠르게 하는 50가지
Html5 앱과 웹사이트를 보다 빠르게 하는 50가지Html5 앱과 웹사이트를 보다 빠르게 하는 50가지
Html5 앱과 웹사이트를 보다 빠르게 하는 50가지
 
Nodejs express
Nodejs expressNodejs express
Nodejs express
 
딥러닝(Deep Learing) using DeepDetect
딥러닝(Deep Learing) using DeepDetect딥러닝(Deep Learing) using DeepDetect
딥러닝(Deep Learing) using DeepDetect
 
F3 네이버오픈api만드는매쉬업
F3 네이버오픈api만드는매쉬업F3 네이버오픈api만드는매쉬업
F3 네이버오픈api만드는매쉬업
 
하이브리드앱 성능 극복
하이브리드앱 성능 극복하이브리드앱 성능 극복
하이브리드앱 성능 극복
 
하이브리드앱 성능 극복
하이브리드앱 성능 극복하이브리드앱 성능 극복
하이브리드앱 성능 극복
 
Hacosa js study 4주차
Hacosa js study 4주차Hacosa js study 4주차
Hacosa js study 4주차
 
PHP Slim Framework with Angular
PHP Slim Framework with AngularPHP Slim Framework with Angular
PHP Slim Framework with Angular
 
4-3. jquery
4-3. jquery4-3. jquery
4-3. jquery
 
Real-time Big Data Analytics Practice with Unstructured Data
Real-time Big Data Analytics Practice with Unstructured DataReal-time Big Data Analytics Practice with Unstructured Data
Real-time Big Data Analytics Practice with Unstructured Data
 
Opensource APM SCOUTER in practice
Opensource APM SCOUTER in practiceOpensource APM SCOUTER in practice
Opensource APM SCOUTER in practice
 
Ji 개발 리뷰 (신림프로그래머)
Ji 개발 리뷰 (신림프로그래머)Ji 개발 리뷰 (신림프로그래머)
Ji 개발 리뷰 (신림프로그래머)
 
Django로 배우는 쉽고 빠른 웹개발 study 자료
Django로 배우는 쉽고 빠른 웹개발 study 자료Django로 배우는 쉽고 빠른 웹개발 study 자료
Django로 배우는 쉽고 빠른 웹개발 study 자료
 
Amazon Rekognition을 통한 이미지 인식 서비스 구축하기
Amazon Rekognition을 통한 이미지 인식 서비스 구축하기Amazon Rekognition을 통한 이미지 인식 서비스 구축하기
Amazon Rekognition을 통한 이미지 인식 서비스 구축하기
 
웹에 빠른 날개를 달아주는 웹 성능 향상 이야기
웹에 빠른 날개를 달아주는 웹 성능 향상 이야기웹에 빠른 날개를 달아주는 웹 성능 향상 이야기
웹에 빠른 날개를 달아주는 웹 성능 향상 이야기
 

Recently uploaded

Grid Layout (Kitworks Team Study 장현정 발표자료)
Grid Layout (Kitworks Team Study 장현정 발표자료)Grid Layout (Kitworks Team Study 장현정 발표자료)
Grid Layout (Kitworks Team Study 장현정 발표자료)
Wonjun Hwang
 

Recently uploaded (7)

Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
Continual Active Learning for Efficient Adaptation of Machine LearningModels ...
 
캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차캐드앤그래픽스 2024년 5월호 목차
캐드앤그래픽스 2024년 5월호 목차
 
A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)A future that integrates LLMs and LAMs (Symposium)
A future that integrates LLMs and LAMs (Symposium)
 
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution DetectionMOODv2 : Masked Image Modeling for Out-of-Distribution Detection
MOODv2 : Masked Image Modeling for Out-of-Distribution Detection
 
Grid Layout (Kitworks Team Study 장현정 발표자료)
Grid Layout (Kitworks Team Study 장현정 발표자료)Grid Layout (Kitworks Team Study 장현정 발표자료)
Grid Layout (Kitworks Team Study 장현정 발표자료)
 
도심 하늘에서 시속 200km로 비행할 수 있는 미래 항공 모빌리티 'S-A2'
도심 하늘에서 시속 200km로 비행할 수 있는 미래 항공 모빌리티 'S-A2'도심 하늘에서 시속 200km로 비행할 수 있는 미래 항공 모빌리티 'S-A2'
도심 하늘에서 시속 200km로 비행할 수 있는 미래 항공 모빌리티 'S-A2'
 
[Terra] Terra Money: Stability and Adoption
[Terra] Terra Money: Stability and Adoption[Terra] Terra Money: Stability and Adoption
[Terra] Terra Money: Stability and Adoption
 

App engine service

  • 2. App Engine Service • Memcache service • URL Fetch service • Image service • Mail API • XMPP service
  • 3. Memcache Service • Jcache - 메모리 캐시를 위한 표준 인터페이스 • Key / Value • Expiration • 앱 엔진의 Memcache 삭제 1) 메모리 부족 2) 명시적 데이터 삭제 3) 애플리케이션 중단
  • 4. Memcache 구성 설정 Cache cache = null; Map props = new HashMap(); props.put(GCacheFactory.EXPIRATION_DELTA, 3600); props.put(MemcacheService.SetPolicy.ADD_ONLY_IF_NOT_PRESENT, true); try { CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory(); Cache = cacheFactory.createCache(props); } catch (CacheException e) { resp.getWriter().println(e.getMessage()); }
  • 5. 캐시 통계 CacheStatistics stats = cache.getCacheStatistics(); int hits = stats.getCacheHits();
  • 6. URL Fetch • 앱 엔진에서 특별히 제공하는 서비스는 아님 • 기졲 자바에서 사용하던 패턴을 그대로 사용
  • 7. URL Fetch Code URL url = new URL("http://www.google.com/"); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String line; while((line = reader.readLine()) != null) { resp.getOutputStream().println(line); }
  • 9. App Engine Image API Package - com.google.appengine.api.images • Image • ImageService • ImageServiceFactory • Transform DataStore - com.google.appengine.api.datastore.Blob
  • 10. Image 조작 코드 Transform flip = ImagesServiceFactory.makeHorizontalFlip(); Image newImage = imagesService.applyTransform(flip, origImage);
  • 11. 예제 Class 들 • ImageObject • ImageSource • ImageTransform • PMF
  • 12. 이미지 변형 기능 • Resize • Rotate • Flip Horizontally • Flip Vertically • Crop • I’m feeling Lucky
  • 13. Mail API • JavaMail Interface • Sender Administration – Permissions • 타 메일서비스 접속 기능 제외 • App Engine에 배포된 상태에서만 동작
  • 14. XMPP Service • Google Talk - ID 등록 cosmosappservice@appspot.com • Jabber