Accessing Google Cloud Pubsub over HTTP 2 using grpc and node js - publish-subscribe

I am trying to use grpc with google cloud pubsub in nodejs but I am unable to understand how it works and how it is implemented there are no samples in nodejs and documentation is not clear for grcp.
There are only function in documentation
I have seen many links but I found nothing
I don't understand:
1) I have to use which library to use its package in .proto file and how to require/install it?
2) Where do I have to give my projectId or service file path?
I want some guidance or it will be great if there are any samples in nodejs.
Thanks.

Related

Springdoc extension for AWS API Gatewary

I want to migrate from springfox 2 to springdoc. Currently, there are multiple plugins (springfox.documentation.spi.service.OperationBuilderPlugin) implemented using the support available in the springfox library.
The plugin of AWS API Gateway is one of them (similar to this one http://springfox.github.io/springfox/docs/current/#example-operationbuilderplugin).
I didn't found relevant examples or detailed documentation of how I can build something like this using the springdoc support.
Would appreciate any suggestion!
There is no such extension available in springdoc-openapi.
You have an example with spring-cloud-gateway that you can adapt.

How to list all vpc_access_connector in gcp project using python

Attempting to create, list , delete vpc access connectors in gcp using python
Is there a library for this or do I use the discovery API? Unsure which discovery API to use. Examples would be extremely helpful
As mentioned on the VPC Access API document, there are some client libraries in order to call the service. Nevertheless, I was unable to find you any example for this in the official Github for the python client library.
I hope you find this information useful!

How to connect the back end and the front end and use the Discovery API in IBM cloud app services?

I am very new to using APIs so please excuse me. I am currently using a Python-Django App service from IBM cloud app services and the IBM Watson Discovery resouce. I have followed all the steps given here:
https://console.bluemix.net/docs/apps/tutorials/tutorial_web.html#before-you-begin
I have a machine that has docker and so the app got built successfully. However I am lost as to how I am supposed to get the front end ( which I am writing in bootstrap, javascript ) to connect to the backend and link the API.
EDIT
For example : I want my app to accept documents, feed them in Discovery, extract the keywords and sentiments and display them in the UI. How do I know what to access from the server side code and what to link where in the UI.
It is a very broad question but its a compulsory project I need to do and I am clueless. Pleaassee Help !
Before you try to integrate an API, you will need to be familiar with Python and Django. If that is not the case, then you really need to go through a series of tutorials.
Then before deploying to the cloud, you will be better off running your Django app locally on your laptop. Use pip to install the watson-developer-cloud pypi module and use the API documentation to build the python code in your Django application - https://www.ibm.com/watson/developercloud/discovery/api/v1/python.html?python#query
If none of this makes sense, then you need to brush up on your knowledge of Python, Pip, and Django.
When you have the app running on your machine, then you will be ready to package it up into either a docker image or cloud foundry container and deploy to the cloud.

Customizing the Hyperledger Composer Rest Server

I have a test Hyperledger Fabric running in the IBM Cloud, with the IBM Blockchain Application Service. I also have a kubernetes cluster running the Hyperledger Composer REST Server. Everything works great, but how do I extend the REST api with some custom api's?
The documentation mentions being able to use the swagger definition (yaml file) with the IBM API Connect or Strongloop product...but how do I do that, as I don't see any way to export the swagger definition?
I don't have a tutorial, but as I see it you would have to do three tasks minimally:
write your REST APIs (to do what you want to do) - perhaps these
resources on REST APIs will help ? -> Loopback ->
https://developer.ibm.com/code/patterns/create-rest-apis-using-loopback/
and in architectural in general
->https://www.ibm.com/developerworks/library/ws-restful/ and
build the routes for your custom APIs
customise your swagger
definitions to document your REST APIs - this may help you ->
https://www.ibm.com/developerworks/library/wa-use-swagger-to-document-and-define-restful-apis/index.html
and Swagger itself -> http://swagger.io/
If you write custom api and call it as 3rd party api which is mentioned in IBM already it will help you to response but it has very limted scope. I belive you should use swagger to understand its end point are properly configured

Integrating external service in Lagom

I used following link to integrate Lagom Unmanaged External Service into my project
https://blog.knoldus.com/2017/08/17/integrating-unmanaged-service-in-lagom-with-scala/
I'm struggling with this tutorial for 2 days with no luck and keep getting UnserializableException.
Hope someone could help me with it
I have a lot of trouble using mentioned tutorial to implement external service. finally I found solution for that so I created a simple project that show you how to use external service in Lagom
you can check it out from below link:
https://github.com/navabi/lagom-unmanaged-service-example
Don't hesitate if you have any further questions.