2011年10月19~21日に開催された「INSIGHT OUT 2011」のセッション「PostgreSQLアーキテクチャ入門」の講演資料です。
「INSIGHT OUT 2011」の詳細については、以下を参照ください。
http://www.insight-tec.com/insight-out-2011.html
This document summarizes Amazon Web Services Japan speaker Tsukagoshi Keisuke's presentation on AWS AppSync. It introduces AppSync as a fully managed GraphQL service that allows building GraphQL APIs integrated with various data sources like Amazon DynamoDB, AWS Lambda, and Elasticsearch. AppSync provides a GraphQL schema definition language to define types and queries, uses Apache Velocity Template Language to map GraphQL queries to data sources, and supports real-time subscriptions. The presentation demonstrated AppSync's capabilities using a sample photo application and GitHub repositories for getting started.
第2回NHNテクノロジーカンファレンスで発表した資料ですー。
References: LINE Storage: Storing billions of rows in Sharded-Redis and HBase per Month (http://tech.naver.jp/blog/?p=1420), I posted this entry in 2012.3.
This document describes how to configure Spring Security for authentication and authorization in a web application. It defines a WebSecurityConfig class that configures HTTP security with roles like OWNER and MANAGER for access control. It also defines a UserDetailsManager service for loading users and a User entity class implementing UserDetails. Tests are shown for security configuration, login, access control and more using Spring Security's test utilities.
Spring Fest 2018で発表した資料です。Spring BootからAmazon MQとMongoDBにアクセスする方法を紹介しています。
This document is the material of my presentation at Spring Fest 2018. I will show you how to access ActiveMQ and MongoDB with Spring Boot.
2011年10月19~21日に開催された「INSIGHT OUT 2011」のセッション「PostgreSQLアーキテクチャ入門」の講演資料です。
「INSIGHT OUT 2011」の詳細については、以下を参照ください。
http://www.insight-tec.com/insight-out-2011.html
This document summarizes Amazon Web Services Japan speaker Tsukagoshi Keisuke's presentation on AWS AppSync. It introduces AppSync as a fully managed GraphQL service that allows building GraphQL APIs integrated with various data sources like Amazon DynamoDB, AWS Lambda, and Elasticsearch. AppSync provides a GraphQL schema definition language to define types and queries, uses Apache Velocity Template Language to map GraphQL queries to data sources, and supports real-time subscriptions. The presentation demonstrated AppSync's capabilities using a sample photo application and GitHub repositories for getting started.
第2回NHNテクノロジーカンファレンスで発表した資料ですー。
References: LINE Storage: Storing billions of rows in Sharded-Redis and HBase per Month (http://tech.naver.jp/blog/?p=1420), I posted this entry in 2012.3.
This document describes how to configure Spring Security for authentication and authorization in a web application. It defines a WebSecurityConfig class that configures HTTP security with roles like OWNER and MANAGER for access control. It also defines a UserDetailsManager service for loading users and a User entity class implementing UserDetails. Tests are shown for security configuration, login, access control and more using Spring Security's test utilities.
Spring Fest 2018で発表した資料です。Spring BootからAmazon MQとMongoDBにアクセスする方法を紹介しています。
This document is the material of my presentation at Spring Fest 2018. I will show you how to access ActiveMQ and MongoDB with Spring Boot.
2022/3/24に開催した「オンプレML基盤 on Kubernetes」の資料です。機械学習モデルの開発者が、よりモデルの開発にのみ集中できるようにすることを目指して開発している「LakeTahoe(レイクタホ)」について紹介します。
https://ml-kubernetes.connpass.com/event/239859/
7. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
今日やりたいこと
? データのキャッシュ
? Ajax通信のモックテスト
? 値のバリデーションチェック
8. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
今日やりたいこと
? データのキャッシュ
? Ajax通信のモックテスト
? 値のバリデーションチェック
9. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
Ajax通信のモックテストの流れ
1. Service Workerの登録
2. Ajax通信
3. Service Workerがリクエストをキャッチ
4. ダミーJsonを返す
5. 画面に表示
10. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
Ajax通信のモックテスト
1. Service Workerの登録
navigator.serviceWorker.register(
?
? "service-?‐worker.js",
?
? {scope:
?"./"}
?
)
?
.then(function(result){
?
? //
?登録成功
?
})
?
.catch(function(result){
?
? //
?登録失敗
?
});
Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
11. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
つまずきポイント#1
root
├── index.html
└── sw
└── test.json
test.jsonへのリクエストをキャッチしたいから?
スコープを「/sw」にする
test.jsonへのリクエストをindex.htmlから行なうので?
スコープを「/」にする
○
【スコープ】
12. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
つまずきポイント#1
? Service Workerはスコープ内からのリクエストを
キャッチする
? リクエスト先がスコープ内にあるかどうかは関係ない
? スコープを指定していない場合はルート以下?
すべてがスコープとなる
【スコープ】
13. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
Ajax通信のモックテスト
$.ajax({
?
? url:
?"/success",
?
? dataType:
?"json"
?
})
?
.done(function(result){
?
? //
?成功処理
?
})
?
.fail(function(result){
?
? //
?失敗処理
?
});
2. Ajax通信
Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
14. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
Ajax通信のモックテスト
self.onfetch
?=
?function(event){
?
? var
?requestURL
?=
?new
?URL(event.request.url);
?
? if(requestURL.pathname.match("/success")){
?
!
?
? //
?success以外のリクエストは素通りさせる
?
!
? }
?
};
3. Service Workerがリクエストをキャッチ
Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
15. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
つまずきポイント#2
? リクエストのキャッチが可能な状態になるのは?
ロードのタイミング
? ワーカーが登録されても、?
リロードしなければリクエストはキャッチされない
? リロードすると、index.htmlのリクエストが?
キャッチされ、本物のindex.htmlが取得できない
- URL判定でindex.htmlは素通りさせる必要がある
【リクエストのキャッチ】
27. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
つまずきポイント#5
? Promise後に respondWith() すると動かない
? respondWith() してからPromise処理
? respondWith() はonfetch内で1度しか使えない
【Promise処理とレスポンス作成】
28. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
まとめ
? スコープの指定には注意が必要?
スコープ内では特定のリクエストのみキャッチさせる
? リクエストのキャッチが可能な状態になるのは?
ロードのタイミング
? リクエストパラメータは event.request.text() ?
で取得する
? Promise処理は respondWith() の後で行なう
29. Copyright (C) 2015 Yahoo Japan Corporation. All Rights Reserved. 無断引用?転載禁止
参考資料
? Google Chromeサンプル?
https://github.com/GoogleChrome/samples/tree/gh-pages/service-worker
? Service Workerの紹介?
http://www.html5rocks.com/ja/tutorials/service-worker/introduction/
? Service Workerを使ったXHRのモックテスト?
http://jxck.hatenablog.com/entry/response-injection
? スペシャルアドバイザー @nhiroki_氏
!