2017年7月6日のブックマーク (4件)

  • grpc-goのInterceptorを使ってみる - Qiita

    始めに 前回の延長でちょっと分かりにくいgrpc-goのInterceptorを使ってみようと思います。 参考:go-grpc-middleware Interceptorとは WebFramework系で言うとこのMiddlewareという認識で良いのではないかと思います。RPCメソッドの呼出に割り込んで事前・事後処理を実行することができます。 サーバーサイド・クライアントサイドどちらでも使えるようですが、今回はサーバーサイドのみに使っています。 ※grpc-goのソースにまだ実験的なものとあったので今後に注意必要かも 実装 InterceptorにはUnaryInterceptorとStreamInterceptorの2種類が用意されており、単純なリクエストとリプライを返すRPCメソッドにはUnaryInterceptorを、Streamを使うRPCメソッドにはStreamInterc

    grpc-goのInterceptorを使ってみる - Qiita
    shnkkb
    shnkkb 2017/07/06
  • Adam Drake

    Enough with the microservicesTl;dr:Don’t even consider microservices unless you have a system that’s too complex to manage as a monolith. The majority of software systems should be built as a single monolithic application. Do pay attention to good modularity within that monolith, but don’t try to separate it into separate services. – Martin Fowler If you can’t build a well-structured monolith, wha

    Adam Drake
    shnkkb
    shnkkb 2017/07/06
  • Consumer-driven contract testing | Technology Radar | Thoughtworks

    This blip is not on the current edition of the Radar. If it was on one of the last few editions, it is likely that it is still relevant. If the blip is older, it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the Radar. Understand more Adopt ? We feel strongly that the

    Consumer-driven contract testing | Technology Radar | Thoughtworks
    shnkkb
    shnkkb 2017/07/06
  • 【新機能】CloudWatch ダッシュボードAPI | DevelopersIO

    渡辺です。 みんな大好きCloudWatchに待望のアップデートです。 CloudWatch ダッシュボードがAWS CLIから登録できるようになりました。 put-dashboard put-dashboardは、ダッシュボードを登録します。 --dashboard-nameでダッシュボード名を、--dashboard-bodyで表示するウィジェットを指定します。 dashboard-bodyはJSONファイルを指定するのが無難でしょう。 test.json { "widgets": [ { "type": "metric", "x": 0, "y": 0, "width": 6, "height": 6, "properties": { "view": "timeSeries", "stacked": false, "metrics": [ [ "Classmethod/EC2", "

    【新機能】CloudWatch ダッシュボードAPI | DevelopersIO
    shnkkb
    shnkkb 2017/07/06