2020-05-01から1ヶ月間の記事一覧

grpc netty

gRPC-Javaの仕組みが気になったのでコードリーディングしてみた https://qiita.com/sugikeitter/items/3291affedc221f117982 gRPC-Javaについて サーバ側では通信制御部分はNettyを利用している クライアント側はAndroidの場合はOkHttp、それ以外はNettyを利…

client

server

package com.example.grpc.serviceapl;package com.example.grpc.serviceapl;/** * Created by rayt on 5/16/16. */ import io.grpc.stub.StreamObserver;import javafx.application.Platform;import javafx.collections.FXCollections;import javafx.collec…

package com.example.grpc.serviceapl;/** * Created by rayt on 5/16/16. */ import io.grpc.ManagedChannel;import io.grpc.ManagedChannelBuilder;import io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder;import io.grpc.stub.StreamObserver;im…

package com.example.grpc.serviceapl;/**package com.example.grpc.serviceapl;/**import javafx.application.Application;public class Launcher { public static void main(String[] args) { Application.launch(ServiceAplClient.class); }}

package com.example.grpc.serviceapl;package com.example.grpc.serviceapl;import java.util.Set;import java.util.concurrent.ConcurrentHashMap;import com.example.grpc.serviceapl.ServiceApl.ServiceAplMessage;import com.example.grpc.serviceapl.S…

gb

package com.example.grpc.serviceapl;package com.example.grpc.serviceapl;import io.grpc.Server;import io.grpc.ServerBuilder;import io.grpc.netty.shaded.io.grpc.netty.NettyServerBuilder;import java.io.IOException;import java.time.LocalDateTi…

gb

package com.example.grpc.serviceapl;package com.example.grpc.serviceapl;import io.grpc.stub.StreamObserver;import java.util.Set;import java.util.concurrent.ConcurrentHashMap; public class ServiceAplImpl extends ServiceAplServiceGrpc.Servic…

gb

/* * Copyright 2016 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lic…

gb

gb

<projectDescription> <name>serviceapl-client</name> <comment>NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment> <projects> <project>serviceapl-client</project> </projects> <buildSpec> </buildspec></projectdescription>

<projectDescription> <name>serviceapl-client</name> <comment>NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment> <projects> <project>serviceapl-client</project> </projects> <buildSpec> </buildspec></projectdescription>

grpc-netty

目的 gRPCでNettyを使ってデータのやり取りを行う。 概要構成図 シーケンス

netty

Netty https://netty.io/wiki/index.html zero-copy https://medium.com/@sauravomar01/zero-copy-in-linux-a48c612d290b Snoop ‐ build your own extremely light-weight HTTP client and server https://netty.io/4.1/xref/io/netty/example/http/snoop/pa…