投稿時間:2023-07-26 19:25:42 RSSフィード2023-07-26 19:00 分まとめ(31件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 情報システムリーダーのためのIT情報専門サイト IT Leaders 洛西貨物自動車、モバイルアプリで配送状況を可視化して荷主と共有、問い合わせ対応の負荷を軽減 | IT Leaders https://it.impress.co.jp/articles/-/25149 洛西貨物自動車、モバイルアプリで配送状況を可視化して荷主と共有、問い合わせ対応の負荷を軽減ITLeaders法人向け中距離輸送サービスを提供する洛西貨物自動車本社京都府京都市は、配送状況を可視化するモバイルアプリを開発した。 2023-07-26 18:04:00
Azure Azureタグが付けられた新着投稿 - Qiita Azure Media Services Migration Tool 非公式日本語ガイド (1) - 出来ることまとめとツールのビルドとセットアップ https://qiita.com/tokawa-ms/items/94682b9ce95f4b285c0c azure 2023-07-26 18:06:55
技術ブログ Mercari Engineering Blog 【Merpay & Mercoin Tech Fest 2023】8月24日のトークセッション見どころをご紹介 https://engineering.mercari.com/blog/entry/20230726-about-merpay-mercoin-techfest-day3/ merpayampmercointehellip 2023-07-26 10:00:49
技術ブログ Developers.IO 「Contact Lens for Amazon Connect入門」というテーマのビデオセッションで話しました #devio2023 https://dev.classmethod.jp/articles/devio2023-video-91-contact-lens-for-amazon-connect/ amazon 2023-07-26 09:11:27
海外TECH MakeUseOf Best Tablet Deals: Save Hundreds on Your New Favorite Tablet https://www.makeuseof.com/best-tablet-deals/ tablet 2023-07-26 09:24:52
海外TECH DEV Community Learn serverless on AWS step-by-step - SNS https://dev.to/kumo/learn-serverless-on-aws-step-by-step-sns-2b46 Learn serverless on AWS step by step SNS TL DRIn this series I try to explain the basics of serverless on AWS to enable you to build your own serverless applications With last article we discovered how to deploy and interact with SQL databases on AWS using Aurora Serverless In this article we will tackle SNS topics which allow to create pub sub patterns in your applications What will we do today In this article we will create a SNS topic and use it to send notifications to multiple Lambda functions We will see how we can leverage this to send targeted notifications to specific parts of our application depending on the context and how to use it to decouple it ️I post serverless content very regularly if you want more ️Follow me on twitter Amazon Simple Notification Service SNS What is SNS Amazon SNS is a serverless pub sub service It allows you to create topics Topics have producers and consumers Producers can publish messages to a topic and consumers can subscribe to a topic to receive messages When a message is published into a topic every consumer will eventually receive it it is called a fan out pattern This is a very powerful pattern as it allows to decouple producers and consumers Producers do not need to know who will consume their messages and consumers do not need to know who will produce them A single action can trigger multiple consumers SNS also enables you to create filters on topics so that consumers can subscribe to a subset of messages This allows to create targeted notifications and to decouple even more your application For example a RequestDelivery Lambda function could only be interested in messages related to delivery requests and not in messages related to payment requests Let s build a simple app to demonstrate SNS Today we are going to build a very simple app A OrderItem Lambda is triggered by a POST request on a REST API The user can specify if he wants to receive a notification as well as if he wants to request a delivery for his order The OrderItem Lambda will publish a message to a SNS topic with the order details Downstream three lambda functions will be triggered by the SNS topic A ExecuteOrder Lambda which will simulate a payment A RequestDelivery Lambda which will simulate a delivery only if the user requested it A Notification Lambda which will send a notification to the user only if he requested it The architecture of our app will look like this Every action will be simulated by a simple console log but with the combined knowledge of this whole series you can easily replace them with real actions on DynamoDB S SES or any other AWS service Create a SNS topicTo build this app we will use the AWS CDK If you are not familiar with it I suggest you read the start of my series where I talk about it in details We will create a new CDK project add the aws cdk aws sns package to it and create a new SNS topic in the stack as well as an API Gateway to trigger our OrderItem Lambda import as cdk from aws cdk lib import path from path export class ArticleSNS extends cdk Stack constructor scope Construct id string super scope id const topic new cdk aws sns Topic this topic const api new cdk aws apigateway RestApi this api const orderItem new cdk aws lambda nodejs NodejsFunction this OrderItem entry path join dirname orderItem handler ts handler handler environment TOPIC ARN topic topicArn topic grantPublish orderItem api root addResource orderItem addMethod POST new cdk aws apigateway LambdaIntegration orderItem Notice that we grant the publish permission to the OrderItem Lambda so that it can publish messages to the topic We also pass the topic ARN to the Lambda as an environment variable so that it can use it to publish messages Subscribe Lambdas to the SNS topicNow let s create the downstream lambda functions and subscribe them to the topic We will implement filters on the topic so that each lambda function only receives the messages it is interested in previous codeconst executeOrder new cdk aws lambda nodejs NodejsFunction this ExecuteOrder entry path join dirname executeOrder handler ts handler handler topic addSubscription new cdk aws sns subscriptions LambdaSubscription executeOrder const requestDelivery new cdk aws lambda nodejs NodejsFunction this RequestDelivery entry path join dirname requestDelivery handler ts handler handler topic addSubscription new cdk aws sns subscriptions LambdaSubscription requestDelivery filterPolicy Only triggers when the requestDelivery attribute is set to true requestDelivery cdk aws sns SubscriptionFilter stringFilter allowlist true const sendNotification new cdk aws lambda nodejs NodejsFunction this SendNotification entry path join dirname sendNotification handler ts handler handler topic addSubscription new cdk aws sns subscriptions LambdaSubscription sendNotification filterPolicy Only triggers when the sendNotification attribute is set to true sendNotification cdk aws sns SubscriptionFilter stringFilter allowlist true See nothing too complicated Using the filterPolicy parameter we can specify which messages should trigger the lambda function In our case we want to trigger the RequestDelivery Lambda only when the requestDelivery attribute is set to true and the SendNotification Lambda only when the sendNotification attribute is set to true Publish messages to the SNS topicFinally the interesting part time to write the code of the Lambdas Let s start with the OrderItem Lambda which will publish the message to the topic orderItem handler tsimport PublishCommand SNSClient from aws sdk client sns const client new SNSClient export const handler async event body string Promise lt statusCode number body string gt gt const topicArn process env TOPIC ARN if topicArn undefined throw new Error TOPIC ARN is undefined const requestDelivery sendNotification item quantity JSON parse event body as requestDelivery boolean sendNotification boolean item string quantity number if requestDelivery undefined sendNotification undefined item undefined quantity undefined return statusCode body Bad request await client send new PublishCommand Message JSON stringify item quantity TopicArn topicArn MessageAttributes sendNotification DataType String StringValue sendNotification toString requestDelivery DataType String StringValue requestDelivery toString return statusCode body Item ordered This code does three things It gets the topic ARN from the environment variables It parses the body of the request and extracts the requestDelivery sendNotification item and quantity attributes It publishes a message to the topic The message body contains the business data item and quantity The attributes requestDelivery and sendNotification are set to true or false depending on the request This attributes are the ones that will be used by the filters we defined earlier For the three downstream Lambdas we will use console log to be able to see in the AWS console if they are triggered or not executeOrder handler tsexport const handler async event Records Sns Message string Promise lt void gt gt event Records forEach Sns Message gt const item quantity JSON parse Message as item string quantity number console log ORDER EXECUTED Item item Quantity quantity In this Lambda I log the content of the messages received from the topic The interesting part is the type of the event parameter it is an array of records This is because SNS can send multiple messages at once so we need to handle this case requestDelivery handler tsexport const handler Promise lt void gt gt console log DELIVERY REQUESTED sendNotification handler tsexport const handler Promise lt void gt gt console log NOTIFICATION SENT As I already said if you followed this series from the start you should be able to replace this console log statements with real actions such as updating a DynamoDB or SQL database send an email with SES or anything else Time to test it First let s deploy the app thanks to the AWS CDK npm run cdk deployThen let s test it by sending API calls with postman In the first call I set sendNotification and requestDelivery to false Only the ExecuteOrder Lambda is triggered as expected We can see the logs in CloudWatch with the content of the message In the second call I set sendNotification to true The ExecuteOrder and SendNotification Lambdas are triggered We can see the logs of SendNotification in CloudWatch In the third call I set requestDelivery to true The ExecuteOrder and RequestDelivery Lambdas are triggered We can see the logs of RequestDelivery in CloudWatch ConclusionThis was a very shallow introduction to SNS I demonstrated how to create a topic subscribe Lambdas to it and publish messages to it I didn t code any real side effect but you should be able to do it by yourself using the knowledge you acquired in the previous articles of this series SNS also allows to send emails SMS or push notifications to mobile apps but I didn t cover this in this article I will probably write another article about it in the future I plan to continue this series of articles on a bi monthly basis I already covered the creation of simple lambda functions and REST APIs as well as interacting with DynamoDB databases and S buckets You can follow this progress on my repository I will cover new topics like front end deployment type safety more advanced patterns and more If you have any suggestions do not hesitate to contact me I would really appreciate if you could react and share this article with your friends and colleagues It will help me a lot to grow my audience Also don t forget to subscribe to be updated when the next article comes out I you want to stay in touch here is my twitter account I often post or re post interesting stuff about AWS and serverless feel free to follow me Follow me on twitter 2023-07-26 09:52:05
海外TECH DEV Community Welcome Thread - v235 https://dev.to/devteam/welcome-thread-v237-297p Welcome Thread vLeave a comment below to introduce yourself You can talk about what brought you here what you re learning or just a fun fact about yourself Reply to someone s comment either with a question or just a hello If you are new to coding want to help beginners in their programming journey or just want another awesome place to connect with fellow developers check out the CodeNewbie Org 2023-07-26 09:30:00
海外科学 NYT > Science Book Review: ‘In the Blood,’ by Charles Barber https://www.nytimes.com/2023/07/26/books/in-the-blood-charles-barber.html barber 2023-07-26 09:00:36
医療系 医療介護 CBnews 熱中症の死亡8割超が高齢者、注意呼び掛け-日医の松本会長 https://www.cbnews.jp/news/entry/20230726181014 定例記者会見 2023-07-26 18:35:00
金融 金融庁ホームページ 国際金融センター特設ページを更新しました。 https://www.fsa.go.jp/policy/financialcenter/index.html 金融センター 2023-07-26 10:00:00
海外ニュース Japan Times latest articles Decapitated Sapporo man had history of violence toward suspected killer, mother says https://www.japantimes.co.jp/news/2023/07/26/national/crime-legal/sapporo-beheading-suspect-violent-encounter/ daughter 2023-07-26 18:30:48
海外ニュース Japan Times latest articles China ousts foreign minister as world grasps for clues as to why https://www.japantimes.co.jp/news/2023/07/26/asia-pacific/politics-diplomacy-asia-pacific/china-qin-gang-dismissed-analysis/ councilor 2023-07-26 18:27:57
海外ニュース Japan Times latest articles Number of Japanese drops in all 47 prefectures for first time as foreign population surges https://www.japantimes.co.jp/news/2023/07/26/national/japan-population-fall/ Number of Japanese drops in all prefectures for first time as foreign population surgesAs of Jan Japan s population including foreign residents stood at down around from a year earlier 2023-07-26 18:25:54
海外ニュース Japan Times latest articles My Number woes put digital minister Taro Kono under pressure https://www.japantimes.co.jp/news/2023/07/26/national/my-number-woes-scrutiny/ My Number woes put digital minister Taro Kono under pressureAnother misstep could deal a further blow to the administration of Prime Minister Fumio Kishida and jeopardize the political standing of Kono 2023-07-26 18:22:47
海外ニュース Japan Times latest articles Can Japan prevent crimes from happening on trains? https://www.japantimes.co.jp/news/2023/07/26/national/train-crimes-prevention-surveillance/ Can Japan prevent crimes from happening on trains Trains are often targeted for attacks because they offer the most familiar everyday setting Railway companies are now exploring ways to bolster security 2023-07-26 18:21:28
海外ニュース Japan Times latest articles Nadeshiko Japan downs Costa Rica to move into knockout stage https://www.japantimes.co.jp/sports/2023/07/26/soccer/womens-world-cup/nadeshiko-japan-costa-rica-put-one-foot-last-16/ rounds 2023-07-26 18:50:07
海外ニュース Japan Times latest articles The local threat to American democracy https://www.japantimes.co.jp/opinion/2023/07/26/commentary/world-commentary/u-s-democracy-threat/ minority 2023-07-26 18:06:22
海外ニュース Japan Times latest articles NATO convoys can protect Ukraine’s grain ships https://www.japantimes.co.jp/opinion/2023/07/26/commentary/world-commentary/russian-ukraine-grain-ships/ shipments 2023-07-26 18:05:48
ニュース BBC News - Home Junior doctors to strike for four days in August https://www.bbc.co.uk/news/health-66312330?at_medium=RSS&at_campaign=KARANGA august 2023-07-26 09:26:38
ニュース BBC News - Home Travis King: How the US negotiates with North Korea https://www.bbc.co.uk/news/world-us-canada-66296792?at_medium=RSS&at_campaign=KARANGA diplomacy 2023-07-26 09:17:55
ニュース BBC News - Home Spain 5-0 Zambia: Big win sends Spain into last 16 https://www.bbc.co.uk/sport/football/66290701?at_medium=RSS&at_campaign=KARANGA Spain Zambia Big win sends Spain into last Jenni Hermoso and Alba Redondo score twice as Spain underline their credentials as potential Fifa Women s World Cup winners by thrashing Zambia to progress to the last with a game to spare 2023-07-26 09:52:07
ニュース BBC News - Home Japan 2-0 Costa Rica: 2011 champions reach Women's World Cup last 16 after win https://www.bbc.co.uk/sport/football/66290694?at_medium=RSS&at_campaign=KARANGA dunedin 2023-07-26 09:40:56
ニュース BBC News - Home Arsenal: Declan Rice wants to be judged on trophies he wins with Gunners https://www.bbc.co.uk/sport/football/66310210?at_medium=RSS&at_campaign=KARANGA arsenal 2023-07-26 09:00:44
ニュース BBC News - Home Team GB tipped to bring home 62 medals from Paris 2024 Olympic Games https://www.bbc.co.uk/sport/olympics/66305346?at_medium=RSS&at_campaign=KARANGA Team GB tipped to bring home medals from Paris Olympic GamesTeam GB are predicted to take home Olympic medals at Paris and finish fourth in the medal table behind hosts France China and the United States 2023-07-26 09:13:22
ビジネス 不景気.com データホライゾンの23年6月期は6億円の最終赤字へ、無配転落 - 不景気com https://www.fukeiki.com/2023/07/data-horizon-2023-loss.html 最終赤字 2023-07-26 09:47:49
IT 週刊アスキー 『Fate/Samurai Remnant』DL版の予約受付開始!オリジナルグッズが当たるSNSキャンペーンもスタート https://weekly.ascii.jp/elem/000/004/147/4147005/ 『FateSamuraiRemnant』DL版の予約受付開始オリジナルグッズが当たるSNSキャンペーンもスタートコーエーテクモゲームスは、年月日にPlayStationPlayStationNintendoSwitchPCSteamで発売予定の『FateSamuraiRemnant』について、本日月日よりダウンロード版の予約を開始したと発表。 2023-07-26 18:55:00
IT 週刊アスキー 『DQウォーク』新イベント「あぶない夏の異世界旅行」が開始!あぶない水着‘23装備ふくびきも新登場 https://weekly.ascii.jp/elem/000/004/147/4147003/ 位置情報 2023-07-26 18:50:00
IT 週刊アスキー 『Dead by Daylight』に新サバイバー「ニコラス・ケイジ」がついに参戦! https://weekly.ascii.jp/elem/000/004/146/4146991/ behaviourinteractive 2023-07-26 18:10:00
IT 週刊アスキー 象印、煙・におい成分を9割カットしながら両面を焼き上げる「マルチロースター」 https://weekly.ascii.jp/elem/000/004/146/4146996/ 高性能 2023-07-26 18:45:00
IT 週刊アスキー ファミマ、電動モビリティーシェア「LUUP」設置を全国100店舗に拡大へ https://weekly.ascii.jp/elem/000/004/146/4146987/ 神奈川県 2023-07-26 18:30:00
IT 週刊アスキー CData Connect Cloud、Excel 365から150種以上のSaaS・DBデータの双方向連携が可能に https://weekly.ascii.jp/elem/000/004/146/4146955/ cdataconnectcloud 2023-07-26 18:15:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)