投稿時間:2021-06-15 02:32:54 RSSフィード2021-06-15 02:00 分まとめ(37件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Architecture Blog Architecture Monthly Magazine: 5G https://aws.amazon.com/blogs/architecture/architecture-monthly-magazine-5g/ Architecture Monthly Magazine GIn our G issue we discuss the evolution implementation and trends for G We ve included some case studies from Verizon and Ericsson and take a look at Ribbon SBC SWe and network slicing with Cloudify There are detailed Reference Architectures for you to check out and videos on DISH Verizon AWS Wavelength VR Automotive and Telef oacute nica … 2021-06-14 16:55:21
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) NullReferenceExceptionのエラーメッセージに困っています。 https://teratail.com/questions/344019?rss=all NullReferenceExceptionのエラーメッセージに困っています。 2021-06-15 01:56:53
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Pythonのコードについて https://teratail.com/questions/344018?rss=all class 2021-06-15 01:56:49
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 【GAS】htmlでselectした値を別の関数に代入したい https://teratail.com/questions/344017?rss=all 【GAS】htmlでselectした値を別の関数に代入したい実現したいことGooglenbspFoamの回答を集めたスプレッドシートからデータを抽出して表示するウェブアプリを作成したいです。 2021-06-15 01:50:40
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) try-catch文とコンストラクタ https://teratail.com/questions/344016?rss=all trycatch文とコンストラクタつの変数を入力し、オブジェクトの作成に失敗した場合、エラーメッセージを表示させた後に、再度つの変数の入力からやり直せるようなコードが書きたいです。 2021-06-15 01:49:41
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 二次元配列の列ごとの合計の求め方 https://teratail.com/questions/344015?rss=all 2021-06-15 01:46:32
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) C++ dxlibを使ったゲーム制作で描画が出来ない https://teratail.com/questions/344014?rss=all 2021-06-15 01:46:20
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) SwiftでFirestoreに保存したデータを検索条件を元に取得したい https://teratail.com/questions/344013?rss=all SwiftでFirestoreに保存したデータを検索条件を元に取得したい実現したいことSwiftにおいてCloudnbspFirestoreに保存したデータを前画面から引き継いだ検索項目を元に取得したい。 2021-06-15 01:39:13
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) パラメトリックブートストラップ法について https://teratail.com/questions/344012?rss=all パラメトリックブートストラップ法について疑問点ある論文を読んでいた際にパラメトリックブートストラップ法という統計手法が出てきており、そのパラメトリックブートストラップ法について独学しているのですが、この手法やコードは以下の考え方で誤りはないでしょうか関数等で恐らくブートストラップ法は実装されているとは思われますが、ただし今回は理解しているかに重点を置きたかったので、自分で計算が理解できている関数のみを使っています。 2021-06-15 01:36:17
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ruby Arrayクラスのインスタンスメソッドの特殊な記法について https://teratail.com/questions/344011?rss=all rubyArrayクラスのインスタンスメソッドの特殊な記法について前提rubyのArrayクラスのインスタンスメソッドにはいくつか通常の記法とは異なる記法が利用できるメソッドがあると思います。 2021-06-15 01:28:35
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 一時的なネームサーバの変更手順について教えて下さい https://teratail.com/questions/344010?rss=all 一時的なネームサーバの変更手順について教えて下さい先日こちらで質問した件の続きになります。 2021-06-15 01:20:04
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 辞書のリストの全要素に対して新しいキーを追加したい https://teratail.com/questions/344009?rss=all 辞書のリストの全要素に対して新しいキーを追加したい前提・実現したいことxapospriceaposnbspnbspapospriceaposのような辞書のリストから、以下のようなリストを作るにはどうしたら良いでしょうか。 2021-06-15 01:17:40
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) [Laravel/nginx/apache] VPSサーバーでマルチドメイン設定をしている片方のドメインが表示されない https://teratail.com/questions/344008?rss=all LaravelnginxapacheVPSサーバーでマルチドメイン設定をしている片方のドメインが表示されないマルチドメイン設定を行っている片方のドメインがうまく表示されません。 2021-06-15 01:07:52
AWS AWSタグが付けられた新着投稿 - Qiita AWSアソシエイト試験に向けて10(AWSのデータベース) https://qiita.com/shitikakei/items/e88c75462c5ae4386216 ビッグデータ解析に用いることができるDWHデータウェアハウスデータの抽出・集約に特化したBIデータビジネスインテリジェンスデータ、ビジネスの意思決定に関わるデータの総称らしい分析用のデータベース読み込むデータ構造を予め設計・加工してから利用するデータの蓄積を開始するレスポンス重視でデータ抽出・集計は早いが、更新・トランザクションは遅いデータはパーティショニングされ、複数のディスクから読み込まれるRDBの一種であるが、分析に特化するために敢えて列指向でデータが格納している構造化データを利用した経営分析向けのデータベースである会計データなどの業務系の構造化データを分析用に加工し、BIとして利用する利用例としてはKPIKeyPerformanceIndicator、重要業績評価指標測定、競合分析、アクセス分析などORACLEExadata、VERTICA、TERADATA、Greenplum、Redshiftなどが該当分散型DBデータレイクビッグデータ、IoTデータの蓄積と高速処理を可能にするDB及びストレージの組み合わせであるデータ抽出に特化していて、ビッグデータの高速処理を必要とする場合に適している分散してデータを保存しているSQLライクな操作感INSERT、DELETE、UPDATEはないトランザクションもないデータ書き込みは一括ロードまたは全件削除のみImpala、HIVE、prestoなどのオンプレにHDFSというソフトウェアの組み合わせやSなどがこれに該当する全検索型エンジンと分散DBの利用分散型DBと連携することで検索データベースを構築して、データ全検索処理を可能にすることが目的検索条件との関係性、関連性が高いデータを抽出して返してくれるElasticSearchは全文検索用のライブラリでApacheLuceneを利用したデータストア分析の柔軟性や速度が高く、分析・蓄積・可視化環境を容易に構築することができる半構造化データ、高可用が必要な全検索エンジン、サイト内データ検索、リアルタイム検索要件・検索行動の可視化exデバイスの登録状況や配信状況に適しているElasticSearch、kibana、ElasticsearchServiceがこれに該当する分散OLTPRDBの一種でオンライントランザクション処理を分散化する次世代DBRDBであるのにグローバルに分散されたDBであるのが大きな特徴強整合性を採用しているリレーショナルデータベースの構造と非リレーショナルデータベースの分散スケーラビリティを兼ね備える高い可用性、高性能なトランザクションと強整合性を実現している大規模な業務データ処理AmazonAuroraがこれに該当するNoSQLのタイプKVSキーバリューストアKeyに対してValueを入れる高速なパフォーマンスと分散型拡張に優れているデータ読み込みが高速シンプルなオペレーションを高速実施したい場合に適している結果整合性を採用分散向けのデータモデル及びクエリを採用トランザクション、集計、JOIN等は利用できない大規模WEBサイトのバックエンドデータexユーザーセッション、ユーザー属性、事前計算データのキャッシュ、メッセージングシステムのデータ、大規模書き込みが必要となるIOTセンサーで用いるデータ等に利用するredis、riakというオンプレDBやElastiCache、DynamoDBがこれに該当するWCSワイドカラムストア列指向とも呼ばれ、キーを利用するがデータは列Columnで管理する非構造データを大規模に格納することを目的としている行ごとに任意の名前のカラムを無数に格納できるKVSの亜種になるので同じく分散させて、シンプルなオペレーションを高速実施したい場合に適しているデータ取得の際にデータ結合しなくて済むように、可能な限り多くのデータを同じ行に保持する結果整合性を採用キースペース、カラムファミリ、ロウスーパーカラム、カラムの入れ子構造SQLライクな操作感データ操作は挿入、削除、参照のみデータの更新は挿入による上書きのみFacebookやTwitterなどのソーシャルデータの位置情報データストレージやリアルタイム分析、データマイニング処理に適しているcassndraApacheHBASS、DynamoDBがこれに該当するDDBドキュメントデータベースKeyに対してValueではなく、直接JSONやXMLを入れる複雑なデータ構造を扱うアプリで高い生産性と柔軟性を持たせることができる様々なデータ構造のドキュメントを混在して保存することができるJSONXMLをデータモデルとして利用する小規模データの同期集計処理が可能であるが、バッチ処理には不向きSQLな操作感、KVSと比べるとクエリも豊富シャーディングによるデータベース分散化を実現半構造化データ、大規模WEBのログ保管、オンラインゲームデータ、カタログ管理に適しているmonogoDB、MarkLogic、CouchDBrelax、Couchbase、AmazonDocumentDBがこれに該当するインメモリデータグリッドKVSをインメモリで行う仕組みのDB大量のデータを多数のサーバーのメモリ上で分散して管理する技術ミリ秒単位の高速の応答処理が可能データはメモリに置かれ、多数のサーバーで分散して管理されるミリ秒以下の応答時間を必要とする金融取引処理データなどに適しているApacheGEODE、ApacheIgnite、ORALCECoherence、hazelcast、InfinisonやRedisElactiCache、MemcahesElastiCacheなどがこれに該当するGDBグラフデータベースグラフ理論に基づきデータ同士の関係をグラフで相互に結びつけた要素で構成されるDBマインドマップのようにデータの関連性をグラフ表示するようなデータ構造を形成する高速横断検索が可能であるグラフ演算に特化していて、データ間のつながり方を検索・可視化したい場合に利用するグラフデータ構造を取るため、RDB以上にスケールアウトができないレコード数が増えると、検索にかかる時間と難易度が増大するACID特性が担保されていて、オブジェクト間の関連付けを簡単に表現できる最短経路探索、金融取引の詐欺検出、ソーシャルネットワークによるリレーション計算に適しているneoj、AmazonNeptuneがこれに該当するAWSにおけるデータベース関連のサービスの立ち位置WellArchitectedFrameWorkでいうなら信頼性パフォーマンス効率ベストプラクティスで言うならスケーラビリティの確保キャッシュの利用増大するデータへの対応最適なデータベースの選択サーバーではなくサービス使い捨てリソースの利用がAWSにおけるデータベース関連のサービスの主な立ち位置となる。 2021-06-15 01:57:29
Ruby Railsタグが付けられた新着投稿 - Qiita ActiveAdminを使用してみる https://qiita.com/hedgehog-genki/items/ae8dbba3a048ec4ff465 課題今回の使用用途としては困らないですが、アソシエーションしている時に登録がうまくいかなかったです。 2021-06-15 01:01:24
海外TECH DEV Community Summer Deals - A Curated List https://dev.to/sm0ke/summer-deals-a-curated-list-4cej Summer Deals A Curated ListHello coders During this period web agencies drop the pricing and many good and pricey products become more accessible to developers here is my list for the summer of This open list will be updated with more sweet deals suggested in the comments Disclaimer The list might contains affiliate links Thanks for reading Creative Tim Full stack Bundle OFFThemesberg Summer Sale OffCodedThemes Bootstrap Premium BundleWrapPixel Big Bundle OFFBootstrapDash Premium products OFF Creative Tim Full Stack BundleThe Summer Full Stack is a collection of Front end and Back end Premium products that will help you develop faster and easier Premium Products Designer Files mo SupportTechnologies Bootstrap Vue React Angular NextDiscount OFFLink Full Stack Bundle Themesberg Summer Sale Off Premium Themes Powered by Bootstrap CSS Pixel PRO Volt Bootstrap PRO Neumorphism UI PRO and other best sellers from Themesberg Technologies Bootstrap and Bootstrap Discount OFFLink Full Stack Bundle CodedThemes Bootstrap Mega BundleGet Premium Admin Templates PSD Templates PSD Bundle Free All admin templates are highly creatively developed and designed fully responsive and tested in all retina devices compatible with major browsers Premium products for ONLY Technologies BootstrapLink Bootstrap Mega Bundle WrapPixel Big Bundle OFFThis deal comes with premium products plus an really nice UI Kit Technologies Bootstrap React Vue AngularDiscount OFF Link Big Bundle OFF BootstrapDash Premium BundleGet the best value for your money with this bundle of premium templates with dashboard layouts UI kits Technologies Bootstrap VueDiscount OFFLink Premium BundleThanks for reading Feel free to suggest more sweet deals in the comments section More Free Templates provided by Creative TimFree React Dashboards a curated List Dev to 2021-06-14 16:51:06
海外TECH DEV Community S.O.L.I.D Principle - Open Closed Principle (OCP) https://dev.to/amalhanaja/s-o-l-i-d-principle-open-closed-principle-ocp-4a7k S O L I D Principle Open Closed Principle OCP Open Closed Principle ini dapat didefinisikan sebagai berikut Software entities classes modules functions etc should be open for extension but closed for modificationyang berarti setiap entitas perangkat lunak class module fungsi dsb sebaiknya terbuka untuk dilakukan ekstensi dan tertutup untuk modifikasi Kita seharusnya dapat menambahkan behavior baru tanpa perlu merubah implementasinya Tujuan dari prinsip ini untuk menghindari kemungkinan terjadinya bug bug baru ketika kita merubah implementasi code yang sudah uda Ilustrasi Open Closed Principle Image SourceSeperti gambar Illustrasi di atas Terdapat Mesin Blender dan beberapa wadah untuk blender yang digunakan untuk kasus kasus yang berbeda dimana ada yang untuk memblender daging memblender buah memblender bumbu dapur Jadi wadah tersebut memiliki fungsi yang berbeda beda tanpa harus merubah fungsi utama dari mesin blender Contoh KasusKita ambil contoh Blender di atas Misal anda memiliki class Blender yang memiliki fungsi untuk memblender buah buahanclass Blender fun blend println Mulai memblender lalu ada kebutuhan dari Produk yang membuat class Blender anda dapat daging dan bumbu dapur rempah rempah Jika anda tidak mengikuti prinsip Open Closed Principle mungkin saja anda akan melakukan hal seperti ini class Blender fun blend tipe String when tipe BUAH gt blendFruit DAGING gt blendMeat REMPAH gt blendSpices private fun blendFruit println Mulai memblender Buah fun blendMeat println Mulai memblender Daging fun blendSpices println Mulai memblender rempah rempah Jika anda melakukan hal tersebut sangat memungkinkan terciptanya bug baru karena anda telah mengubah code yang sebelumnya telah berjalan normal Code ImprovementSekarang kita akan coba melakukan improvement agar sesuai dengan prinsip OCP interface Processor fun process kita siapkan antarmuka abstraksi yang akan kita gunakan sebagai cetakan processor processor yang akan kita buat nanti Lalu kita mulai buat masing masing processor menggunakan cetakan yang sudah ada class FruitProcessor Processor override fun process println Mulai memblender Buah class MeatProcessor Processor override fun process println Mulai memblender Daging class SpicesProcessor Processor override fun process println Mulai memblender rempah rempah setelah kita buat masing masing processor nya untuk memproses masing masing bahan olahan kita menambahkan parameter di fungsi blend dengan object Processor yang akan kita gunakan untuk memproses bahan olahan class Blender fun blend processor Processor processor process Lantas apa yang terjadi ketika produk ingin menambahkan kebutuhan untuk memblender batu es ice cube Kita tinggal membuat class baru yang mengimplementasikan interface Processorclass IceCubeProcessor Processor override fun process println Mulai memblender batu es sehingga kita tidak perlu mengubah class Blender yang sebelumnya sudah berjalan Manfaatfungsionalitas dari class X dapat dengan mudah diperluas dengan fungsionalitas yang baru dengan dikemas dalam kelas yang terpisah dari class X tanpa perlu mengubah implementasi di class X tidak ada perubahan di class X code anda menjadi loosely coupledclass Y yang di pakai di dalam class X dapat dengan mudah dimock dipalsukan sehingga membuat class X lebih mudah untuk di test Akhir KataSekian dan terimakasih Saya harap anda bisa menerapkan prinsip ini sehingga code yang anda tulis akan mencadi lebih bersih mudah untuk test lebih mudah untuk dikembangkan lagi dan dapat menunjang produktivitas anda 2021-06-14 16:36:40
海外TECH DEV Community Basics of Callbacks and Promises in Javascript https://dev.to/pat_the99/basics-of-callbacks-and-promises-in-javascript-4cj7 Basics of Callbacks and Promises in Javascript JS WIL Post Most websites and applications written would at some point request data from a server wait for user input or in general do other processes that would take a good amount of time to finish Because of this Javascript supports asynchronous functions simply functions that can run in the background while other parts of the program execute These functions are executed in its entirety when called but might finish on some future time One and the simplest way of achieving asynchrony is by using callbacks CallbacksA callback is a function passed as an argument to a different function They are executed asynchronously or at a later time Practically programs are read from top to bottom but this is not always the case as async code may run different functions at different times For instance when handling click events for buttons in an HTML form we typically do this submitBtn addEventListener click this function is a callback function printSomething function printSomething console log Hello Dev Community In the snippet above the addEventListener function takes a callback in this case the function invoking the printSomething method It will then be invoked when the submitBtn is clicked Using callbacks are pretty easy and convenient when dealing with simple processes However it may quickly get out of hand if they are chained or nested deeply together famously known as Callback Hell or pyramid of doom So callbacks are very fundamental in JS asynchrony However as the language grows and with program logic getting a little too complex they are not enough The future of JS requires a more sophisticated way of async patterns one such mechanism is a promise PromisesA promise is an object that MIGHT produce a value at some future time For example let us say that the function fetchDatabaseData gets data from a server and returns it as an object function fetchDatabaseData fetches data via some API return api getData Fetching the data from the server may take time so unless we tell the code that it will always assume that the data is ready The api getData is probably not yet finished so executing the below snippet may have an unwanted result e g undefined const apiData fetchDatabaseData const firstEntry apiData first So to fix this problem we need a mechanism to tell our program to wait for fetchDatabaseData to finish Promises solve this issue for us To fix the above code we can do something like function fetchDatabaseData fetches data via some API return new Promise function resolve reject const result api getData if result undefined reject Ooops we ve got an error else resolve result const apiData fetchDatabaseData apiData then handle fulfilled operation function data const firstEntry apiData first console log firstEntry handle rejection error function err console error err From the example above a promise behaves as a future value Since the time dependent process is encapsulated inside the promise the promise itself can be treated as time independent Meaning it can be combined with any other promise regardless of how long the encapsulated process might take without any problem When the result from the api is undefined the returned Promise will have a rejected state Thus the then method would print Oops we ve got an error On the other hand if the api results to a defined object the Promise would be fulfilled and the then method would print the api results In addition immutability is one of the most essential aspect of promises Once a promise has been resolved it stays that way FOREVER It becomes immutable You can then pass the promise around and know that it cannot be modified maliciously or accidentally I created a very simple weather application using the fetch function which returns a promise The live preview and the code can be found in github I also recommend reading these chapters of You Don t Know JS Callbacks in Chapter and Promises in Chapter for a more in depth discussion of these concepts In conclusion there are a lot of ways to handle asynchrony in Javascript two of them via callbacks or promise Callbacks can be used in handling simple logic but might get out of hand if chained i e callback hell Promises do not get rid of callbacks they try to address callback chains by expressing the asynchronous program flow in a sequential way It helps in writing maintainable JS code It also makes the code more readable as the program flow is sequential which is similar on how our brain plans and executes actions Cheers to continuous learning REFERENCES Art of Node The Odin Project Async You Don t Know JS 2021-06-14 16:09:20
海外TECH DEV Community How to build a GraphQL Gateway with Spring Boot and Kotlin https://dev.to/jmfayard/how-to-build-a-graphql-gateway-with-spring-boot-and-kotlin-h30 How to build a GraphQL Gateway with Spring Boot and KotlinWith Spring Boot Kotlin Coroutines GraphQL java kickstart you can build a GraphQL Gateway with a minimum of boilerplate Up and RunningThe code is available at jmfayard spring playground A playground of Spring projects spring playgroundProjectsgraphql gateway based on kotlin spring webflux graphql java kickstartspring fu based on coroutines spring kafu View on GitHubRun the server like this git clone cd spring playground graphql gateway gradlew bootRunOpen GraphiQL at http localhost Animal factsWith this project up and running you can fetch animal facts using a GraphQL Query Enter this query query dog fact length latency cat fact length latency Run the query and you will see something like this If you are new to GraphQL read this introduction from methodcoder I will wait GraphQL Crash Course in pics Xiaoru Li ・Nov ・ min read graphql webdev beginners javascript Cat facts and dog factsWhere do the animal facts come from The server knows about two REST APIs The first is about cat facts http get fact Isaac Newton invented the cat flap Newton was experimenting in a pitch black room Spithead one of his cats kept opening the door and wrecking his experiment The cat flap kept both Newton and Spithead happy length And the second about dog facts http get fact A large breed dog s resting heart beats between and times per minute and a small dog breed s heart beats between Comparatively a resting human heart beats times per minute By building a simple gateway we take on complexity so that the front end developers have one less thing to worry about we take care of calling the multiple endpoints and combining them becoming a backend for frontend we offer a nice GraphQL schema to the front end s we normalize the response format dog facts have no length attribute but we can compute it we can potentially reduce the total response time Without the gateway the front end would do two round trips of let say ms so ms With the gateway there is one round trip of ms and two round trips between the gateway and the facts server If those are located on the same network those could be done in ms each for a total of ms So how do we build that gateway DependenciesIf you start a new project from scratch via you will need to add those dependencies Spring webfluxGraphQL javaGraphQL java kickstart librariesUse the source LukeNote that I m using gradle refreshVersions to make it easy to keep the project up to date Therefore the versions are not defined in the build gradle files they are centralized in the versions properties file RefreshVersions is bootstrapped like this in settings gradle kts plugins See id de fayard refreshVersions version GraphQL schema firstGraphQL java kickstart uses a schema first approach We first define our schema in resources graphql schema grqphqls type Query cat Fact dog Fact type Fact fact String length Int We then tell Spring where our GraphQLSchema comes from Configurationclass GraphQLConfig Bean fun graphQLSchema animalsQueryResolver AnimalsQueryResolver GraphQLSchema return SchemaParser newParser file graphql schema graphqls resolvers animalsQueryResolver build makeExecutableSchema Spring wants at least a GraphQLQueryResolver the class responsible for implementing GraphQL queries We will define one but keep it empty for now Componentclass AnimalsQueryResolver GraphQLQueryResolver GraphQLQueryResolverIf we start our application with gradlew bootRun we will see it fail fast with this error message FieldResolverError No method or field found as defined in schema graphql schema graphqls with any of the following signatures with or without one of interface graphql schema DataFetchingEnvironment as the last argument in priority order dev jmfayard factsdemo AnimalsQueryResolver cat dev jmfayard factsdemo AnimalsQueryResolver getCat dev jmfayard factsdemo AnimalsQueryResolver catThe schema which is the single source of truth requires something to implement a cat query but we didn t have that in the code To make Spring happy we make sure our Query Resolver has the same shape as the GraphQL schema Componentclass AnimalsQueryResolver GraphQLQueryResolver suspend fun dog Fact TODO suspend fun cat Fact TODO data class Fact val fact String val length Int Notice that you can directly define a suspending function without any additional boilerplate to implement the query Run again gradlew bootRun and now Spring starts We go one step further by forwarding the calls to an AnimalsRepository Componentclass AnimalsQueryResolver val animalsRepository AnimalsRepository GraphQLQueryResolver suspend fun dog Fact animalsRepository dog suspend fun cat Fact animalsRepository cat How do we implement this repository We need an HTTP client Suspending HTTP calls with ktor clientWe could have used the built in reactive WebClient that Spring provides but I wanted to use ktor client to keep things as simple as possible First we have to add the dependencies for ktor http and kotlinx serialization then configure our client See the commit Configure ktor client okhttp amp kotlinx serializationThe most interesting part is here Componentclass AnimalsRepository val ktorClient HttpClient suspend fun dog Fact val dogFact ktorClient get lt DogFact gt DOG FACT URL return Fact fact dogFact fact length dogFact fact length suspend fun cat Fact val catFact ktorClient get lt CatFact gt CAT FACT URLS return Fact fact catFact fact length catFact length Simple or non blocking why not both When I see the code above I am reminded that I love coroutines We get to write code in a simple direct style like in the old days when we were writing blocking code in a one thread per request model Here it s essential to write non blocking code the gateway spends most of its time waiting for the two other servers to answer Code written using some kind of promise or reactive streams is therefore clearly more efficient than blocking code But those require you to think in reactive streams and make your code looks different indeed With coroutines we get the efficiency and our code is as simple as it gets Resilience via a Circuit BreakerWe have a gateway but it s a bad gateway More precisely it s as bad as the worst of the servers it depends on to do its job If one server throws an error systematically or gets v e r y s l o w our gateway follows blindly We don t want the same error to reoccur constantly and we want to handle the error quickly without waiting for the TCP timeout We can make our gateway more resilient by using a circuit breaker Resiliencej provides such a circuit breaker implementation We first add and configure the library See the commit add a circuit breaker powered by resiliencej The usage is at simple as it gets Componentclass AnimalsRepository val ktorClient HttpClient val dogCircuitBreaker CircuitBreaker val catCircuitBreaker CircuitBreaker suspend fun dog Fact val dogFact dogCircuitBreaker executeSuspendFunction ktorClient get lt DogFact gt DOG FACT URL return Fact fact dogFact fact length dogFact fact length suspend fun cat Fact val catFact catCircuitBreaker executeSuspendFunction ktorClient get lt CatFact gt CAT FACT URLS return Fact fact catFact fact length catFact length I want to learn moreSee spring playground graphql gateway jmfayard spring playground A playground of Spring projects spring playgroundProjectsgraphql gateway based on kotlin spring webflux graphql java kickstartspring fu based on coroutines spring kafu View on GitHubThe talk that inspired this article KotlinFest「Future of Jira Software powered by Kotlin」 kotlinfest YouTubeDocumentation of the libraries used in this project Getting started with a Ktor client KtorAbout GraphQL Spring Boot GraphQL Java KickstartAbout GraphQL Java Tools GraphQL Java Kickstartgraphql java graphql java GraphQL Java implementationResiliencejIf you want to contact me there is a standing invitation at 2021-06-14 16:04:55
海外TECH Engadget Halo Infinite's season passes won't expire https://www.engadget.com/halo-infinite-free-to-play-details-162244896.html?src=rss_b2c Halo Infinite x s season passes won x t expireWith Infinite Industries says it s taking a player first approach to progression and customization There won t be any random loot or loot boxes in the game 2021-06-14 16:22:44
Cisco Cisco Blog Building Secure, Resilient IT to Move Your Business Forward https://blogs.cisco.com/customerexperience/building-secure-resilient-it-to-move-your-business-forward Building Secure Resilient IT to Move Your Business ForwardIn today s fast changing world organizations must focus on IT security and resiliency to protect against cyberthreats and remain competitive as they evolve their technology for digital transformation According to a report from ZDNet there s been a increase in attacks on remote workers and a whopping rise in cloud cyberattacks alone since The call for stronger IT security and resiliency is loud and clear and Cisco Customer Experience CX is ready to answer 2021-06-14 16:28:05
海外科学 NYT > Science Virus Scientist Kristian Andersen On Fauci Email and Lab-Leak Theory https://www.nytimes.com/2021/06/14/science/covid-lab-leak-fauci-kristian-andersen.html Virus Scientist Kristian Andersen On Fauci Email and Lab Leak TheoryIn early Kristian Andersen wrote to Anthony Fauci about the possibility of an engineered coronavirus His research has since dispelled those suspicions 2021-06-14 16:53:07
海外科学 NYT > Science Glacier Blood? Watermelon Snow? Whatever It’s Called, Snow Shouldn’t Be So Red. https://www.nytimes.com/2021/06/11/science/watermelon-snow-algae-glacier-blood.html Glacier Blood Watermelon Snow Whatever It s Called Snow Shouldn t Be So Red Researchers are starting to investigate the species that drive alpine algal blooms to better understand their causes and effects 2021-06-14 16:03:18
金融 ◇◇ 保険デイリーニュース ◇◇(損保担当者必携!) 保険デイリーニュース(06/15) http://www.yanaharu.com/ins/?p=4607 損害保険ジャパン 2021-06-14 16:23:13
金融 金融庁ホームページ 金融審議会「市場制度ワーキング・グループ」(第11回)議事次第について公表しました。 https://www.fsa.go.jp/singi/singi_kinyu/market-system/siryou/20210614.html 金融審議会 2021-06-14 17:00:00
金融 金融庁ホームページ 時事通信社主催 第151回金融懇話会における氷見野長官の講演について掲載しました。 https://www.fsa.go.jp/common/conference/danwa/index_kouen.html 時事通信社 2021-06-14 16:01:00
ニュース BBC News - Home Covid: Lockdown easing in England to be delayed by four weeks https://www.bbc.co.uk/news/uk-57464097 government 2021-06-14 16:30:12
ニュース BBC News - Home No evidence Bashir rehired as cover-up - BBC report https://www.bbc.co.uk/news/uk-57469980 bashir 2021-06-14 16:42:07
ニュース BBC News - Home Nato warns of military challenge posed by China https://www.bbc.co.uk/news/world-europe-57466210 systemic 2021-06-14 16:45:30
ニュース BBC News - Home Euro 2020: Watch all the angles of Schick's halfway wonder goal https://www.bbc.co.uk/sport/av/football/57475435 Euro Watch all the angles of Schick x s halfway wonder goalWatch all the angles of Patrik Schick s incredible half way goal that helped the Czech Republic to a win over Scotland at Hampden 2021-06-14 16:06:26
ニュース BBC News - Home Euro 2020: Andy Robertson says Scotland made to pay for missed chances against Czechs https://www.bbc.co.uk/sport/football/57475265 Euro Andy Robertson says Scotland made to pay for missed chances against CzechsScotland s failure to take their chances is what cost them in their opening Euro defeat by the Czech Republic says captain Andy Robertson 2021-06-14 16:07:32
ニュース BBC News - Home What are the social distancing rules and when could they end? https://www.bbc.co.uk/news/uk-51506729 will 2021-06-14 16:47:47
ニュース BBC News - Home Covid vaccine: How many people in the UK have been vaccinated so far? https://www.bbc.co.uk/news/health-55274833 covid 2021-06-14 16:47:25
ニュース BBC News - Home Covid-19 in the UK: How many coronavirus cases are there in my area? https://www.bbc.co.uk/news/uk-51768274 cases 2021-06-14 16:19:58
サブカルネタ ラーブロ 中華そば 梟@蓮沼さてさて、コロナ禍で、だいぶ麺活も、自粛せざるを得なかった訳でござい... http://feedproxy.google.com/~r/rablo/~3/zUPH2zEz0Qc/single_feed.php instagram 2021-06-14 17:40:10
北海道 北海道新聞 日鉄室蘭 3人が体調不良で搬送 ガスを吸い込んだ可能性 https://www.hokkaido-np.co.jp/article/555490/ 体調不良 2021-06-15 01:08:00
北海道 北海道新聞 政府・与党、国会延長を拒否 追及で政権弱体化懸念 https://www.hokkaido-np.co.jp/article/555489/ 予定通り 2021-06-15 01:05:00

コメント

このブログの人気の投稿

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

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

投稿時間:2024-02-12 22:08:06 RSSフィード2024-02-12 22:00分まとめ(7件)