{"id":214,"date":"2020-08-03T10:22:41","date_gmt":"2020-08-03T01:22:41","guid":{"rendered":"http:\/\/localhost:8000\/?p=214"},"modified":"2021-01-16T14:27:51","modified_gmt":"2021-01-16T05:27:51","slug":"firestore-cost-risk","status":"publish","type":"post","link":"http:\/\/localhost:8000\/2020\/08\/firestore-cost-risk.html","title":{"rendered":"Firestore\u306e\u30b3\u30b9\u30c8\u30ea\u30b9\u30af\u524a\u6e1b"},"content":{"rendered":"

Firestore + typescript \u3092\u4f7f\u3063\u3066\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\uff08Chrome\u62e1\u5f35\uff09\u3092\u4f5c\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001DOS\u653b\u6483\u3092\u3046\u3051\u305f\u308a\u3001\u5358\u7d14\u306b\u5229\u7528\u8005\u6570\u304c\u591a\u304b\u3063\u305f\u308a\u3059\u308b\u3068\u666e\u901a\u306bFirestore\u306e\u7121\u6599\u67a0\u3092\u8d85\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30b9\u30c8\u30ea\u30b9\u30af\u3092\u4e0b\u3052\u308b\u305f\u3081\u306b\u3001\u8272\u3005\u5bfe\u7b56\u3092\u5b9f\u65bd\u3057\u305f\u306e\u3067\u7d39\u4ecb\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002
\n\"\"<\/p>\n

Firestore\u306e\u6599\u91d1<\/h2>\n

\u307e\u305a\u306f\u3001FireStore\u306e\u6599\u91d1\u4f53\u7cfb\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002\u601d\u3063\u305f\u3088\u308a\u7121\u6599\u67a0\u304c\u5c11\u306a\u3044\u3067\u3059\u3002<\/p>\n

\u7121\u6599\u67a0<\/h3>\n

\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u307e\u3057\u305f\u3002\u5358\u4f4d\u304c\u66f8\u3044\u3066\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u304a\u305d\u3089\u304f\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6570\u3067\u3059\u3002\u8aad\u307f\u53d6\u308a\u3001\u66f8\u304d\u8fbc\u307f\u3001\u524a\u9664\u306e\u5236\u9650\u304c\u7d50\u69cb\u53b3\u3057\u304f\u3066\u3001\u4f55\u3082\u8003\u3048\u305a\u306b\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3068\u8d85\u3048\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\u3002\u305d\u3046\u3058\u3083\u306a\u304f\u3066\u3082\u3001\u4e00\u89a7\u753b\u9762\u3068\u304b\u3067 F5 \u30a2\u30bf\u30c3\u30af\u3068\u304b\u3055\u308c\u305f\u3089\u7c21\u5358\u306b\u7121\u6599\u67a0\u3092\u8d85\u3048\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n\n\n\n\n\n
\u51e6\u7406\u533a\u5206<\/th>\n\u7121\u6599\u67a0<\/th>\n<\/tr>\n<\/thead>\n
\u4fdd\u5b58\u30c7\u30fc\u30bf<\/td>\n1 GiB<\/td>\n<\/tr>\n
\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u8aad\u307f\u53d6\u308a<\/td>\n50,000\/\u65e5<\/td>\n<\/tr>\n
\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u66f8\u304d\u8fbc\u307f<\/td>\n20,000\/\u65e5<\/td>\n<\/tr>\n
\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u524a\u9664<\/td>\n20,000\/\u65e5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u7121\u6599\u67a0\u3092\u8d85\u3048\u305f\u5834\u5408\u306e\u6599\u91d1<\/h3>\n

\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u307e\u3057\u305f\u3002\u3053\u3061\u3089\u306b\u306f\u5358\u4f4d\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u307e\u3067\u3059\u3054\u3044\u91d1\u984d\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u6016\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n\n\n\n\n\n\n
\u51e6\u7406\u533a\u5206<\/th>\n\u7121\u6599\u67a0\u8d85\u904e\u5206\u306e\u6599\u91d1<\/th>\n<\/tr>\n<\/thead>\n
\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u8aad\u307f\u53d6\u308a<\/td>\n\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 100,000 \u70b9\u3042\u305f\u308a $0.038 = \u7d044.18\u5186<\/td>\n<\/tr>\n
\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u66f8\u304d\u8fbc\u307f<\/td>\n\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 100,000 \u70b9\u3042\u305f\u308a $0.115 = \u7d0412.65\u5186<\/td>\n<\/tr>\n
\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u524a\u9664<\/td>\n\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 100,000 \u70b9\u3042\u305f\u308a $0.013 = \u7d041.42\u5186<\/td>\n<\/tr>\n
\u4fdd\u5b58\u30c7\u30fc\u30bf<\/td>\n$0.115\/GiB\/\u6708 = \u7d0412.65\u5186\/GiB\/\u6708<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u3053\u3053\u304b\u3089\u306f\u3001\u4e0a\u8a18\u3092\u8e0f\u307e\u3048\u305f\u4e0a\u3067\u3001\u30b3\u30b9\u30c8\u30ea\u30b9\u30af\u3068\u6291\u3048\u308b\u5bfe\u7b56\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u2460\u4e88\u7b97\u67a0\u3092\u8d85\u3048\u305f\u3089\u30a2\u30e9\u30fc\u30c8\u30e1\u30fc\u30eb<\/h2>\n

Cloud Console\u306e\u304a\u652f\u6255\u3044<\/a>\u306e\u30da\u30fc\u30b8\u304b\u3089\u5bfe\u8c61\u306e\u8acb\u6c42\u5148\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\uff08Firebase\u306e\u304a\u652f\u6255\u3044\uff09\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u300c\u4e88\u7b97\u3068\u30a2\u30e9\u30fc\u30c8\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n

\u3042\u3068\u306f\u3001\u300c+\u4e88\u7b97\u3092\u4f5c\u6210\u300d\u30dc\u30bf\u30f3\u304b\u3089\u4e88\u7b97\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002
\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u8907\u6570\u6bb5\u968e\u306b\u5206\u3051\u3066\u30a2\u30e9\u30fc\u30c8\u95be\u5024\u30eb\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002
\n\"\"<\/p>\n

\u3053\u3061\u3089<\/a>\u306b\u3042\u308b\u3088\u3046\u306b\u3001\u95be\u5024\u3092\u3053\u3048\u305f\u3089\u8acb\u6c42\u5148\u30a2\u30ab\u30a6\u30f3\u30c8\u7ba1\u7406\u8005\u3001\u8acb\u6c42\u5148\u30a2\u30ab\u30a6\u30f3\u30c8\u30e6\u30fc\u30b6\u306b\u30a2\u30e9\u30fc\u30c8\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n

\u30a2\u30e9\u30fc\u30c8\u30e1\u30fc\u30eb\u304c\u98db\u3093\u3067\u304d\u305f\u3089\u3001\u3059\u3050\u306bFirebase\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u505c\u6b62\u3057\u305f\u304f\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u624b\u4f5c\u696d\u3067\u505c\u6b62\u3059\u308b\u65b9\u6cd5\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n

\u624b\u52d5\u505c\u6b62\uff11\uff1a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u524a\u9664 & \u5fa9\u5143<\/h3>\n

Firebase\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3067\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u505c\u6b62\u3068\u3044\u3046\u6a5f\u80fd\u306f\u306a\u304f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u524a\u9664\u3057\u306630\u65e5\u4ee5\u5185\u306b\u5fa9\u5143\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n

\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u524a\u9664\u306f\u3001Firebase\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762<\/a>\u304b\u3089\u5bfe\u8c61\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u3001\u30ae\u30a2\u30de\u30fc\u30af\u304b\u3089\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u306b\u79fb\u52d5\u3057\u3001\u4e0b\u306e\u65b9\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u3068\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u524a\u9664\u300d\u3068\u3044\u3046\u30dc\u30bf\u30f3\u304b\u3089\u884c\u3044\u307e\u3059\u3002<\/p>\n

\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u5168\u3066\u30c1\u30a7\u30c3\u30af\u3057\u3066\u524a\u9664\u3057\u307e\u3059\u3002
\n\"\"<\/p>\n

\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5fa9\u5143\u306f\u3001\u524a\u9664\u6642\u306b\u53d7\u3051\u53d6\u308b\u4ee5\u4e0b\u306e\u30e1\u30fc\u30eb\u304b\u3089\u884c\u3046\u306e\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002
\n\"\"<\/p>\n

\u3053\u306e resource pending deletion<\/a> \u30ea\u30f3\u30af\u304b\u3089\u3001\u524a\u9664\u4fdd\u7559\u4e2d\u306e\u30ea\u30bd\u30fc\u30b9\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u5bfe\u8c61\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u300c\u5fa9\u5143\u300d\u3092\u884c\u3044\u307e\u3059\u3002
\n\"\"<\/p>\n

\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u5fa9\u5143<\/code>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u5fa9\u5143<\/code>\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u307f\u308b\u9650\u308a\u8acb\u6c42<\/code>\u304c\u6709\u52b9\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u3067\u3059\u3002
\n\"\"<\/p>\n

\u5b9f\u969b\u306b\u5b9f\u884c\u3057\u3066\u307f\u3066\u3001Firebase\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762<\/a>\u3092\u8868\u793a\u3059\u308b\u3068\u3001\u4f55\u4e8b\u3082\u306a\u304b\u3063\u305f\u3088\u3046\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002\u4eca\u56de\u4f7f\u3063\u3066\u3044\u308bAuthentication<\/code>\u30fbFirestore<\/code>\u30fbFunctions<\/code>\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u304c\u3001\u30c7\u30fc\u30bf\u306f\u305d\u306e\u307e\u307e\u3067\u8a2d\u5b9a\u3082\u7279\u306b\u6d88\u3048\u3066\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n

\u3057\u304b\u3057\u3001\u30c0\u30e1\u306b\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u3082\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n