投稿時間:2023-07-08 01:27:25 RSSフィード2023-07-08 01:00 分まとめ(30件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 「Apple Vision Pro」、米国の次はイギリスやカナダで発売か ー 日本での発売に向けたローカライズ作業も行われている模様 https://taisy0.com/2023/07/08/173784.html apple 2023-07-07 15:11:49
AWS AWS Partner Network (APN) Blog Accelerating Public Health Data Modernization with AI-Powered Document Processing from Quantiphi https://aws.amazon.com/blogs/apn/accelerating-public-health-data-modernization-with-ai-powered-document-processing-from-quantiphi/ Accelerating Public Health Data Modernization with AI Powered Document Processing from QuantiphiMany public health agencies and laboratories still fax their test results and frequently change the format of those documents Quantiphi s Jim Keller speaks with AWS about the benefits of QDox an intelligent document processing solution that leverages AI to recognize the document type extract information and deliver the output in the desired format Quantiphi is an AWS Premier Tier Services Partner that s a category defining analytics machine learning and cloud modernization company 2023-07-07 15:51:39
python Pythonタグが付けられた新着投稿 - Qiita 会議動画から議事録を自動生成する https://qiita.com/takiatsushi/items/cade8d763959d5e994da chatgpt 2023-07-08 00:42:20
海外TECH Ars Technica Dealmaster: Early Amazon Prime Day 2023 deals and more https://arstechnica.com/?p=1949667 deals 2023-07-07 15:44:08
海外TECH MakeUseOf 9 Awesome DIY Ideas to Put Old Car Parts to Good Use https://www.makeuseof.com/diy-ideas-upcyle-old-car-parts/ project 2023-07-07 15:30:20
海外TECH MakeUseOf What to Do if Your Windows Computer Screen Turns Black and White https://www.makeuseof.com/windows-computer-screen-black-white/ television 2023-07-07 15:15:20
海外TECH MakeUseOf TTL vs. Manual Flash: Which One Should You Use for Your Photos? https://www.makeuseof.com/ttl-vs-manual-flash-photography/ TTL vs Manual Flash Which One Should You Use for Your Photos If you re just getting started with flash photography you ll likely choose either a TTL or manual flash Which one is right for your needs 2023-07-07 15:15:20
海外TECH MakeUseOf Best Portable Bluetooth Speakers to Get Before Prime Day https://www.makeuseof.com/amazon-prime-day-portable-bluetooth-speaker-deals/ bluetooth 2023-07-07 15:07:32
海外TECH DEV Community React Server Components without any frameworks https://dev.to/lazarv/react-server-components-without-any-frameworks-5a8p React Server Components without any frameworksStarting with Next js developers can access the power of React Server Components let s just use RSC from now on But if you don t want to use Next js and you want to start to use RSC out of the box then how should you start DependenciesYou need to use the experimental versions of react react dom and react server dom webpack Let s start up a new project and install these We will use pnpm as it is now the best and most loved choice Also for quick setup we will use Vite for the client side and HatTip for our backend handler for more convenient readable stream handling mkdir hello rsccd hello rscpnpm initpnpm add react experimental react dom experimental react server dom webpack experimental vite vitejs plugin react hattip core hattip adapter node ImplementationTo start to work with SSR rendering with Vite we need to create some files to get started with  SSRWe will need an index html file which will be our SSR HTML template which will load the client entry script This is very very minimal lt script type module src index jsx gt lt script gt lt div id root gt lt div gt To start our SSR enabled Vite development server let s create an index mjs file where we will instantiate a Vite development server in middleware mode and with ssr as application type import createMiddleware from hattip adapter node import createServer as createViteDevServer from vite import react from vitejs plugin react import readFile from node fs promises const viteDevServer await createViteDevServer server middlewareMode true appType ssr plugins react We need to preload our index html for later usage So let s read up the file as it is const html await readFile index html utf The following HatTip handler will be our router to handle requests which accepts an RSC response If the Accept header includes the text x component MIME type then we know that the client needs the response in RSC format The RSC format is a JSON like format which includes all the React elements the client will render L h null children Hello World h null children Darwin x T Z Our implementation loads the rsc jsx SSR module using Vite and uses the render function which will render the RSC into a readable stream We also do some basic error handling const ssr createMiddleware async request gt if request headers get accept includes text x component try const render await viteDevServer ssrLoadModule rsc jsx return new Response await render headers content type text x component catch e return new Response e stack status headers content type text plain return new Response await viteDevServer transformIndexHtml request url html headers content type text html At the end of this we only need to start listening to requests using the Vite development server As theviteDevServer middlewares use ssr viteDevServer middlewares listen on listening gt console log Listening on http localhost React Server ComponentHow the rsc jsx looks like It s really very simple The main imported module we need to watch out for is the react server dom webpack server edge Our lt App gt component is an async function so we can use await inside of it and at the end just return JSX where we can also include server side only functionality so we give the client information about our OS and the current time But first we delay the response for a bit import renderToReadableStream from react server dom webpack server edge import as OS from node os async function delay ms return new Promise resolve gt setTimeout resolve ms async function App await delay return lt gt lt h gt Hello World lt h gt lt h gt OS type OS arch OS release lt h gt new Date toISOString lt gt export async function render return renderToReadableStream lt App gt The exported render function is the one we used in the index mjs handler loaded with Vite as an SSR module ClientThe last part we need to implement is our client entry where we create our React root to render the RSC response import Suspense from react import createRoot from react dom client import createFromFetch from react server dom webpack client browser let rsc null function App if rsc rsc createFromFetch fetch app headers Accept text x component return rsc const root createRoot document getElementById root root render lt Suspense fallback Loading gt lt App gt lt Suspense gt We need to add a Suspense around our lt App gt component so it will show a fallback loading message while the client receives the RSC response We also need to cache the result of createFromFetch as we don t want this to be fired more than once and it always should be the same so React can handle the lt App gt component properly Future enhancementCurrently our RSC rendering is not supporting client components use client only server side rendered elements We also don t support server actions in this implementation These are much more advanced topics and you should use Next js for this or another meta framework supporting these features SummarySurely this is only a Hello World level implementation and could be enhanced but maybe this is a good starting point when you want to start playing with some low level implementation regarding React Server Components You can access the code at this repoThanks for reading please click on follow and have a nice day 2023-07-07 15:21:00
海外TECH DEV Community UI. The interface should not be distracting https://dev.to/alexboyko/ui-the-interface-should-not-be-distracting-3op3 UI The interface should not be distractingDgrm netEditing a figure in dgrm Minimum buttons Display settings next to the shape TaskMake it convenient Convenient means not to distract the userThe analyst thinks through the business process he needs to focus The schema editor should not be distracting The editor should take as little attention as possible Max buttons at the same timeWe can simultaneously keep elements in memory numbers words If the menu has items it s convenient If more you need to break into blocks This is done in all programs img alt Notepad program The large menu is divided into blocks lt br gt No more than elements per block height src dev to uploads s amazonaws com uploads articles wvbzbemvdybjgrnv png width Notepad program The large menu is divided into blocks No more than elements per block There are blocks on the main screen Each has no more than buttons Operations with a group of figures buttons Don t shift focusIn dgrm the controls are neutral blending into the canvas All focus on the diagram The settings appear next to the shape No need to jump between the settings panel and the shape with your eyes The settings appear next to the shape You don t need to look away Fewer steps to complete an operationDrag and drop a file faster than uploading through the menu You can open the diagram by dragging Ctrl C Ctrl V is faster than Save Image gt Paste in Word Copying between diagrams and Google Docs Eliminate the need to chooseChoosing styles and patterns is fun but it s distracting Our ability to concentrate is limited the working tool should not take away our resources For a working scheme colors are enough No palette needed In dgrm you can upload an image in only one format in png The same picture is the “project file You can open it for editing Another example Stroke is always in the background It doesn t need to be configured img alt The order of the shapes can be edited but the stroke is always in the background lt br gt It doesn t need to be configured lt br gt height src dev to uploads s amazonaws com uploads articles uxxjofpdcmqra png width The order of the shapes can be edited but the stroke is always in the background It doesn t need to be configured Don t force aimWhen we aim a thread at a needle listen carefully look at the fine print we cannot do anything else at the same time These actions occupy all our attention Listening carefully we stop and even partially turn off our vision In dgrm you draw by cells You don t need to aim All figures always fit into cells It is easier for you to make figures of the same size and to place them evenly Cell drawing All figures are always symmetrical and fit into the cells Editor is developingEditor Announcements on Twitter 2023-07-07 15:18:04
海外TECH DEV Community How to showcase your projects? https://dev.to/merudra754/how-to-showcase-your-project-d46 How to showcase your projects If anybody asks about your projects you probably send him the live link of your project A deployed project with a live URL is a good way to introduce your project but it is not the best one In this article I will be writing about the important steps required to showcase your projects to a reviewer recruiter System Design DocumentsYou can document the important steps algorithms you implemented while building your project What problems did you face How did you solve them What technologies frameworks did you use Architectural System Design DiagramsDiagrams speak more that words You can use UML or any online tool like draw io Diagrams help vizualize your app s architecture UX UIA good user experience is very important No matter how performant low latency your app has it is not useable if it has poor UI PapersYou can write a proper paper on which type of problem your application is going to solve It is not necessary for everybody because it requires a lot of research Blog ArticlesWrite blogs on platforms like Medium Dev etc Write about anything you know Pick a problem write about the problem what did you do solve the problem what was your approach VideosCreate videos of your product Talk about it in the video 2023-07-07 15:09:54
Apple AppleInsider - Frontpage News 'Apple Music' can't be trademarked, says appeals court https://appleinsider.com/articles/23/07/07/apple-music-cant-be-trademarked-says-appeals-court?utm_medium=rss x Apple Music x can x t be trademarked says appeals courtAn independent musician has beaten Apple over the company s attempts to trademark the term Apple Music which he claimed would lead to confusion with his own Apple Jazz term Court rejects Apple s request for a rehearingMusician Charlie Bertini opposed Apple s application for a federal trademark for Apple Music when that streaming service was launched In the US Trademark Office ruled in favor of Apple specifically because Apple claimed that it had a prior claim Read more 2023-07-07 15:25:58
Apple AppleInsider - Frontpage News Apple cracks down on lending apps after deepfake nudes threat https://appleinsider.com/articles/23/07/07/apple-cracks-down-on-lending-apps-after-deepfake-nudes-threat?utm_medium=rss Apple cracks down on lending apps after deepfake nudes threatApple has removed a bunch of exploitative lending apps in India that used unethical strategies to collect such as threatening to send deepfake nudes to borrowers contacts Apple removes some predatory lending apps in IndiaDuring the past week Apple removed several apps from its store including Pocket Kash White Kash Golden Kash and OK Rupee These apps gained popularity among Indian consumers and even secured positions in the top of the finance category on the App Store Read more 2023-07-07 15:08:53
海外TECH Engadget All the questions we still have about Threads, Meta’s Twitter killer https://www.engadget.com/all-the-questions-we-still-have-about-threads-153059430.html?src=rss All the questions we still have about Threads Meta s Twitter killerThreads Meta s text based Twitter rival is finally out in the world most of it anyway Compared with other would be Twitter challengers Threads has absolutely exploded By the morning after its launch the Instagram offshoot had already attracted more than million new sign ups according to Mark Zuckerberg The momentum seems to have spooked Elon Musk whose personal lawyer has reportedly threatened to sue Meta over unspecified “trade secrets But while the Meta vs Twitter rivalry continues to play out there are still some major questions about the new platform and how Meta intends to run it Why the relentless focus on brands and influencers It s no secret that Meta began testing Threads with a relatively small group of creators and celebrities ahead of its official launch The group provided some early feedback to the company and helped ensure that when the floodgates did eventually open new users were greeted with more than an empty feed The ploy worked New Threads users found a lively feed filled with posts upon joining But it s also led to the main feed feeling a bit…underwhelming Finding posts from friends particularly recent posts can be difficult as the current feed algorithm seems to heavily favor influencers celebrities brands and other higher profile accounts Which leads us to What about a non algorithmic feed If you know anything about Twitter it s that the original reverse chronological feed is sacred to many longtime users The same is true in some corners of Instagram which brought back its chronological feed last year following a five year hiatus So it can feel a bit jarring that Threads currently has a single algorithmic feed that seems to lean quite heavily on recommended posts from accounts you re not already following Not only is there no chronological feed but there s no way to view a feed of posts from only accounts you follow though some have devised a workaround by messing with the app s notification settings Both Instagram head Adam Mosseri and Zuckerberg have since confirmed that a “following feed ーthat is a feed dedicated solely to accounts you follow ーis in the works though it s unclear if this feed will be chronological or algorithmic That should help address the “garbage hose problem as Slate s Alex Kirshner described it How will Threads tie into the broader Fediverse One of the more intriguing aspects of Threads is Meta s promise to integrate ActivityPub the open source protocol that powers Mastodon and other decentralized platforms that make up the “Fediverse Mosseri told The Verge that Threads launched without ActivityPub due to the complexity involved “It requires a bunch more work he said But the company seems committed to the idea In its announcement the company suggested it was all in on the open standard and what it represents for the future of social networks “Our vision is that people using compatible apps will be able to follow and interact with people on Threads without having a Threads account and vice versa ushering in a new era of diverse and interconnected networks Meta wrote But the prospect of eventual Fediverse integration raises all kinds of new questions as well How will the app which is currently an offshoot of Instagram handle interoperability with other federated platforms Right now Threads requires an Instagram account which is neither decentralized or open source much less compatible with ActivityPub Users can t even delete their Threads account without also deleting their Instagram So how will Threads users take their audience with them if they decide to leave Even on Mastodon the process is far from simple How will people on the thousands of Mastodon servers view and interact with posts on Threads Mastodon CEO Eugen Rochko has suggested it will be up to individual server admins to enable compatibility but it s still far from clear how this functionality would work And that doesn t address what might be possible on other platforms that pledged to support ActivityPub like Tumblr and Flipboard which may be less enthused about their platforms content being accessible a Meta owned service Fediverse support also raises all kinds of questions about content moderation Officially Threads has the same community guidelines as Instagram but federated platforms are free to set their own standards and norms How will Meta keep content from other platforms that goes against its rules from Threads once posts are interoperable What about content moderation Speaking of content moderation Meta hasn t really addressed how it plans to scale its content moderation operation to handle the sudden influx of new users to a brand new platform Up to now the company has been clear that Instagram s existing community guidelines apply on Threads and that it s hoping to foster a more “positive environment But it s unclear how the company is handling enforcement internally And as much as Meta execs try to emphasize the good vibes history has taught us that where there are millions of users there will inevitably be bad actors spreading hate speech misinformation and all the familiar ills of giant social media platforms For now it seems like Threads is largely relying on Instagram s moderation infrastructure For example the app will warn you before attempting to follow a user that s repeatedly shared misinformation The company is also pushing users to carry over their block restrict and word filtering settings from Instagram But with more than million posts on its first day of existence Threads will at some point likely need its own moderation resources Where are all the other features More immediately the most pressing question for most Threads users is when Meta will start adding a bunch of basic features that could make Threads more functionally like Twitter and other services For now many have raised the absence of a number of basic capabilities Direct Messages Unlike Twitter and Instagram Threads has no private messaging And so far it s unclear if that could change Mosseri seems cautious about the idea telling The Verge he was hesitant to contribute to “inbox fatigue Web interface For a lot of Twitter power users one of the more frustrating aspects of Threads is the lack of a proper web interface For now you can manually view Threads posts by navigating to user s public profiles but there s no way to view your feed or interact with posts Here again Mosseri says that s in the works “The priority is the mobile apps but we are working on www he wrote Search and hashtags While Threads makes it easy enough to find people from your existing social graph Threads doesn t allow you to search posts or even use basic filtering tools like hashtags Accessibility Unfortunately as with so many other new platforms Threads so far has ignored some basic accessibility features There s no support for alt text for photos for example which feels like a pretty glaring omission given Threads ties to Instagram Ads Most users brands aside probably aren t clamoring for ads in their new feeds But the launch of Threads has prompted questions about what Meta s eventual plan for advertising is According to Zuckerberg the ads won t be coming any time soon “Our approach will be the same as all our other products make the product work well first then see if we can get it on a clear path to billion people and only then think about monetization at that point he wrote on Threads While we don t know exactly which features Meta is prioritizing first it seems safe to say we won t have to wait too long for at least some of these features One advantage Threads has over many of its upstart competitors is that Meta has infinitely more engineers it can dedicate to these issues And new features will be key if the company wants Threads to be a long term success and not just a novelty This article originally appeared on Engadget at 2023-07-07 15:30:59
Cisco Cisco Blog Revolutionizing Partner Support: Black Belt’s Game-Changing Track Revamp https://feedpress.me/link/23532/16227141/revolutionizing-partner-support-black-belts-game-changing-track-revamp Revolutionizing Partner Support Black Belt s Game Changing Track RevampThe Support track has undergone a refresh in June with its content compartmentalized into two stages Black Belt Support Stage and Black Belt Support Stage 2023-07-07 15:00:49
海外科学 NYT > Science Misoprostol Alone Safely Ends Pregnancies After 10 Weeks, Study Suggests https://www.nytimes.com/2023/07/06/health/abortion-misoprostol.html Misoprostol Alone Safely Ends Pregnancies After Weeks Study SuggestsMost women who took abortion drugs were successful even at later gestation periods researchers reported Many used only misoprostol not the usual two drug combination 2023-07-07 15:56:43
海外科学 NYT > Science Frank Field, Who Brought Expertise to TV Weathercasting, Dies at 100 https://www.nytimes.com/2023/07/02/business/media/frank-field-dead.html Frank Field Who Brought Expertise to TV Weathercasting Dies at The first meteorologist to forecast the weather on New York television he later became known for among other things publicizing the Heimlich maneuver 2023-07-07 15:06:17
金融 金融庁ホームページ 人事異動(令和5年7月7日付)を公表しました。 https://www.fsa.go.jp/common/about/jinji/index.html 人事異動 2023-07-07 16:00:00
ニュース BBC News - Home Elle Edwards murderer Connor Chapman jailed for at least 48 years https://www.bbc.co.uk/news/uk-england-merseyside-66135840?at_medium=RSS&at_campaign=KARANGA machine 2023-07-07 15:50:52
ニュース BBC News - Home Wimbledon school crash: Girl, 8, in life-threatening condition https://www.bbc.co.uk/news/uk-england-london-66135977?at_medium=RSS&at_campaign=KARANGA condition 2023-07-07 15:17:47
ニュース BBC News - Home Jamie Barrow: Man who murdered family in fire jailed for 44 years https://www.bbc.co.uk/news/uk-england-nottinghamshire-66135038?at_medium=RSS&at_campaign=KARANGA barrow 2023-07-07 15:45:27
ニュース BBC News - Home Heat health alert issued - and thunderstorms to come https://www.bbc.co.uk/news/uk-66132649?at_medium=RSS&at_campaign=KARANGA downpours 2023-07-07 15:25:53
ニュース BBC News - Home Ofsted: New report upgrades Ruth Perry's school to good https://www.bbc.co.uk/news/uk-england-berkshire-66133695?at_medium=RSS&at_campaign=KARANGA goodthe 2023-07-07 15:43:00
ニュース BBC News - Home Forgotten Jack Hilton book to be republished after bartender's discovery https://www.bbc.co.uk/news/entertainment-arts-66131911?at_medium=RSS&at_campaign=KARANGA auden 2023-07-07 15:33:41
ニュース BBC News - Home Nottingham attacks: Inquest opens for three victims https://www.bbc.co.uk/news/uk-england-nottinghamshire-66135189?at_medium=RSS&at_campaign=KARANGA coates 2023-07-07 15:05:51
ニュース BBC News - Home Scottish government wants drug possession to be legal https://www.bbc.co.uk/news/uk-scotland-66133549?at_medium=RSS&at_campaign=KARANGA government 2023-07-07 15:31:27
ニュース BBC News - Home Tour de France: Jasper Philipsen denies Mark Cavendish outright stage wins record https://www.bbc.co.uk/sport/cycling/66136531?at_medium=RSS&at_campaign=KARANGA Tour de France Jasper Philipsen denies Mark Cavendish outright stage wins recordJasper Philipsen denies Mark Cavendish a record th stage victory at the Tour de France with victory in Bordeaux on Friday 2023-07-07 15:41:10
ニュース BBC News - Home Wimbledon 2023 results: Carlos Alcaraz, Daniil Medvedev and Holger Rune among day five winners https://www.bbc.co.uk/sport/tennis/66137329?at_medium=RSS&at_campaign=KARANGA Wimbledon results Carlos Alcaraz Daniil Medvedev and Holger Rune among day five winnersWorld number one Carlos Alcaraz gains his first win on Centre Court as he beats France s Alexandre Muller to move into round three at Wimbledon 2023-07-07 15:29:06
GCP Cloud Blog Dallas County provides critical language services with Google Public Sector https://cloud.google.com/blog/topics/public-sector/dallas-county-provides-critical-language-services-google-public-sector/ Dallas County provides critical language services with Google Public SectorDallas County s mission is to provide exceptional services that promote a thriving community As the second most populous county in Texas and the ninth largest in the country they serve over million constituents in the Dallas Texas area The county population is diverse with a large number of both English and non English speakers According to the latest census data the Latino population comprises of Dallas County followed by White and Black plus a significant Vietnamese population Realizing that the services they offered were not easily accessible to everyone in the community Dallas County set out to create more language inclusive systems They worked with Google Public Sector to create two language support programs to promote equitable access to services across the county This initiative was built on their existing foundation of innovation and commitment to diversity equity and inclusion Using innovation to support equitable accessIn April Dallas County began using Contact Center AI CCAI and Enterprise Translation Hub ETH to provide critical language services to constituents Both solutions powered by Google Cloud and SpringML enable the County to extend services to many more of their constituents effortlessly Their ETH program translates existing service documents Spanish speakers can also use the county s CCAI powered virtual assistant for self service access Translating existing documents from English to over different languages used to require a large amount of resources and excessive time and effort for staff to make them fit in the existing format ETH can now translate existing documents forms County Commissioner newsletters etc into over different languages without the original meaning of the document getting lost in translation saving Dallas County resources and preserving the constituent s ability to follow along with each document as intended The new virtual assistant helps constituents find what they re looking for when visiting the Dallas County website SpringML helped design and build a custom virtual assistant trained on county data to provide answers to constituent questions working with Dallas County to align on the top most frequently asked questions based on website and call center statistics The virtual assistant provides support through instant message conversations available in Spanish and English This assistant which is available can save users a significant amount of time by providing helpful answers to commonly asked questions and contact information like email addresses phone numbers and locations Both projects allow the county to communicate better by providing resources in their constituents native languages bringing language access to of the population Helping the community thriveWithin the first week of the ETH program seven departments operating within Dallas County have enrolled to have their documents translated Forms are already being rolled out in both Spanish and Vietnamese In that same timeframe the virtual assistant has held more than conversations covering a wide range of topics Both are bringing services to non English speaking populations quickly and effectively making it easier for individuals companies and community partners to conduct business with Dallas County This is just the start of Dallas County s goal to use innovative technology solutions to improve people s lives The county is already looking to expand its use of Google Cloud solutions to build even more accessible services  To learn about how Google Public Sector can help state and local governments transform the way they serve their communities visit  Google Cloud for State and Local Government  and read about Dearborn s digital service transformation on the blog page for another example of these solutions in action 2023-07-07 16:00:00
GCP Cloud Blog Workflows executing other parallel workflows: A practical guide https://cloud.google.com/blog/products/application-development/setup-parallel-task-execution-with-parent-and-child-workflows/ Workflows executing other parallel workflows A practical guideIntroductionThere are numerous scenarios where you might want to execute tasks in parallel One common use case involves dividing data into batches processing each batch in parallel and combining the results in the end This approach not only enhances the speed of the overall processing but it also allows for easier error detection in smaller tasks  On the other hand setting up parallel tasks monitoring them handling errors in each task and combining the results in the end is not trivial Thankfully Google Cloud s Workflows can help In this post we will explore how you can use a parent workflow to set up and execute parallel child workflows Let s get started Setting up the child workflowTo begin let s create a child workflow that will serve as the foundation for our parallel execution  The child workflow receives arguments from the parent workflow In our example we ll use a simple iteration integer but in real world scenarios it could represent a data chunk passed from the parent workflow code block StructValue u code u main r n params args r n steps r n init r n assign r n iteration args iteration u language u u caption lt wagtail wagtailcore rich text RichText object at xeed gt The child workflow starts performing some work In this example it simply waits seconds to simulate doing some work code block StructValue u code u wait r n call sys sleep r n args r n seconds u language u u caption lt wagtail wagtailcore rich text RichText object at xee gt Afterwards it returns the result or failure of the work In this case it just uses whether the iteration is even or odd to simulate success and failure code block StructValue u code u check iteration even or odd r n switch r n condition iteration r n next raise error r n return message r n return Hello world iteration r n raise error r n raise Error with iteration iteration u language u u caption lt wagtail wagtailcore rich text RichText object at xeeff gt You can see the full definition in the workflow child yaml file Deploy the child workflow code block StructValue u code u gcloud workflows deploy workflow child source workflow child yaml u language u u caption lt wagtail wagtailcore rich text RichText object at xeeff gt Setting up the parent workflowNow let s create the parent workflow which orchestrates the parallel execution of the child workflows The parent workflow starts by initializing a map to store the results of successful and failed executions code block StructValue u code u main r n steps r n init r n assign r n execution results results from each execution r n execution results success successful executions saved under success key r n execution results failure failed executions saved under failure key u language u u caption lt wagtail wagtailcore rich text RichText object at xeefe gt Next the parent workflow employs a parallel for loop to execute the child workflows with data chunks In our example we pass integers from to to simulate data As each iteration is independent we parallelize them using the parallel keyword Note that each for loop iteration spins up a thread and the for loop is not waiting for a response before proceeding with the next iteration code block StructValue u code u execute child workflows r n parallel r n shared execution results r n for r n value iteration r n in r n steps r n iterate u language u u caption lt wagtail wagtailcore rich text RichText object at xeefe gt Within each iteration the child workflow is executed with the iteration argument The parent workflow then waits for the success or failure of the child workflow execution and captures the results failures in the map code block StructValue u code u try r n steps r n execute child workflow r n call googleapis workflowexecutions v projects locations workflows executions run r n args r n workflow id workflow child r n location r n project id r n argument r n iteration iteration r n result execution result r n save successful execution r n assign r n execution results success string iteration execution result r n except r n as e r n steps r n save failed execution r n assign r n execution results failure string iteration e u language u u caption lt wagtail wagtailcore rich text RichText object at xeefabd gt Finally the parent workflow returns the results failures map code block StructValue u code u return execution results r n return execution results u language u u caption lt wagtail wagtailcore rich text RichText object at xeefabd gt You can see the full definition in workflow parent yaml file Deploy the parent workflow code block StructValue u code u gcloud workflows deploy workflow parent source workflow parent yaml u language u u caption lt wagtail wagtailcore rich text RichText object at xeefabd gt Execute the workflowWith both workflows deployed it s time to execute the parent workflow code block StructValue u code u gcloud workflows run workflow parent u language u u caption lt wagtail wagtailcore rich text RichText object at xeefab gt As the parent workflow runs you will observe four parallel executions of the child workflow Each child workflow represents a different batch of data being processed simultaneously Since they all run in parallel after seconds you should see of them succeeded and failed The parent workflow displays the results of the successful executions And the errors of the failed executions At this point the parent workflow has the option to retry the failed executions or proceed with the successful ones depending on your requirements SummaryBy dividing data into batches and executing them simultaneously we can enhance overall processing speed and detect failures more easily in each execution In this post we explored how to implement parallel execution of workflows and combining the results using Google Cloud Workflows  Check out the following video on more information on parallel steps in Workflows Getting started with parallel steps in WorkflowsAnd as always feel free to contact me on Twitter meteatamel for any questions or feedback 2023-07-07 16:00: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件)