Channel creation using node fabric sdk 2.2 - blockchain

Hey is there any way to create a channel in fabric-network using fabric-network npm package.
I found this "https://hyperledger.github.io/fabric-sdk-node/release-1.4/module-fabric-network.Gateway.html#getClient__anchor" but this is for fabric-sdk-nod 1.4 and i am working on 2.2.
didn't find any solutions.

The Fabric programming model introduced with Fabric v1.4 (fabric-network, fabric-gateway-java etc.) focus on supporting business applications to submit and evaluate (query) transactions, and to receive events. Using the Fabric CLI commands became the primary supported tool for admin operations. This approach continues with the new Fabric Gateway client API, which is the primary supported client API for Fabric v2.4 onwards, replacing the legacy SDKs:
https://github.com/hyperledger/fabric-gateway
Programmatic admin capability is something that does regularly get requested by the community and, at the time of writing, there is an effort underway to develop a new Fabric admin API separate from the client application APIs/SDKs:
https://github.com/Hyperledger-TWGC/fabric-admin-sdk
I believe the Node implementation is well advanced and usable.
Again, at the time of writing, there is an open proposal to move this to a first-class Hyperledger project:
https://github.com/hyperledger/fabric-rfcs/pull/55

Related

IBP Python SDK functionality for invoking chaincode transactions

Looking at the current IBP Python SDK ( https://github.com/IBM-Blockchain/ibp-python-sdk ) I can't find any calls for invoking chaincode transactions (adding data in the ledger and querying it). Will this functionality be added later?
This SDK is only for the managing of the IBM Blockchain Platform itself and is not an SDK for interacting with a Hyperledger Fabric network created on IBM Blockchain Platform. You should look to the various hyperlegdger fabric SDKs themselves for that capability. IBM provides documentation about this which you can find here
https://cloud.ibm.com/docs/blockchain?topic=blockchain-ibp-console-app
Note that it doesn't list the hyperledger fabric Python SDK because it's not recommended for use with IBM Blockchain Platform.

Spring-Cloud-AWS vs AWS-SDK-Java 2

Ours is a Spring-Boot based application. For integration with AWS SNS and SQS, we have couple of options:
Use Spring-Cloud-AWS
Use AWS-SDK-Java 2
I wanted to know if there is any advantage in using one or the other.
When I ask AWS guys, they tell me that AWS SDK gets updated regularly and integration with SNS and SQS is not difficult. Hence, there is no need to integrate with Spring-Cloud-AWS.
I tried searching on gitter channel for Spring-Cloud and could not find any relevant information. Documentation does state that I can update the AWS-SDK version. Documentation does not state any compelling reason for not using AWS-SDK directly.
If anyone has some insights, please share.
From the AWS Spring Team:
"From now on, our efforts focus on 3.0 - based on AWS SDK 2.0."
So, if you need AWS SDK 2.0, you probably want to go directly with the SDK.
https://spring.io/blog/2021/03/17/spring-cloud-aws-2-3-is-now-available
For more on what's new on AWS Java SDK 2.0:
https://aws.amazon.com/blogs/developer/aws-sdk-for-java-2-0-developer-preview/
The main advantage over the AWS Java SDK is the Spring style convenience and head start we get by using the Spring project. As per the project documentation (https://cloud.spring.io/spring-cloud-aws/reference/html/##using-amazon-web-services)
Using the SDK, application developers still have to integrate the SDK
into their application with a considerable amount of infrastructure
related code. Spring Cloud AWS provides application developers already
integrated Spring-based modules to consume services and avoid
infrastructure related code as much as possible.

Can I use gamelift with node.js servers?

I know it may sound as a stupid question but I am new to all this backend stuff, so take it into account pls.
So, gamelift gives you a fleet of Amazon Linux (or Windows) servers where you can put your game and on top of that a lot of fancy features for gamedev. So if it is a simple Linux can I put there my node.js application? And if not then can I at least use some of the Gamelift functionality (SDK which is available in javascript) while having my servers on ECS for example.
Not a JS user, but come across this question.
It seems that Amazon has released GameLift SDK for Node.js: https://github.com/aws/aws-sdk-js
You can use below command to install:
npm install aws-sdk
I'm currently trying out different solutions. But you can use node.js to create game server on Gamelift.
There are 2 options:
Realtime server - basically already setup environment to start a game server using node
Custom server - Amazon supports only a couple of languages with their server SDK and js isn't one of them. Fortunately the user dplusic at Github rewrote C# SDK in js, you should be able to use it to run a custom server using node.js

Neo4j and Django, make a Graph for recommendations

We are using Django for our backend REST API and PostgreSQL as DB. Need to build a User graph which has Story as a property for recommendation system. I came across Neo4jDjango. Many answers here seem to suggest this lib. But the last commit on this was 3 years before.
Is there a upto date lib I can use to seamlessly itegerate it with Django. Using Python2.7 and Django1.11 along side with PostgreSQL, want to use Neo4j just for graph querying.
It should be able to support realtime db sync, i.e. with each row update in a model a node is added in graph.
The Neo4j web site shows some alternatives to work with Python and Neo4j. Take a look:
Neo4j Python Driver: The Neo4j Python driver is officially supported by Neo4j and connects to the database using the binary protocol. It aims to be minimal, while being idiomatic to Python. (Githib repo, Last commit 3 days ago)
Py2neo: Py2neo is a client library and comprehensive toolkit for working with Neo4j from within Python applications and from the command line. The core library has no external dependencies and has been carefully designed to be easy and intuitive to use. (Github repo, Last commit on 15 Dec 2016)
Neomodel: An Object Graph Mapper built on top of the Neo4j python driver. Familiar Django style node definitions with a powerful query API, thread safe and full transaction support. A Django plugin django_nemodel is also available. (Github repo, Last commit on 9 Jun)
Neo4jRestClient: The main goal of neo4j-rest-client was to enable Python programmers already using Neo4j locally through python-embedded, to use the Neo4j REST server. So the syntax of neo4j-rest-client’s API is fully compatible with python-embedded. However, a new syntax is introduced in order to reach a more pythonic style and to enrich the API with the new features the Neo4j team introduces. (Github repo, Last commit on 14 Jun 2016)
As you can see, the Neo4j Python Driver is the most up to date.

What GUI tool can I use for building applications that interact with multiple APIs?

My company uses a lot of different web services on daily bases. I find that I repeat same steps over and over again on daily bases.
For example, when I start a new project, I perform the following actions:
Create a new client & project in Liquid Planner.
Create a new client Freshbooks
Create a project in Github or Codebasehq
Developers to Codebasehq or Github who are going to be working on this project
Create tasks in Ticketing system on Codebasehq and tasks in Liquid Planner
This is just when starting new projects. When I have to track tasks, it gets even trickier because I have to monitor tasks in 2 different systems.
So my question is, is there a tool that I can use to create a web service that will automate some of these interactions? Ideally, it would be something that would allow me to graphically work with the web service API and produce an executable that I can run on a server.
I don't want to build it from scratch. I know, I can do it with Python or RoR, but I don't want to get that low level.
I would like to add my sources and pass data around from one service to another. What could I use? Any suggestions?
Progress DataXtend Semantic Integrator lets you build WebServices through an Eclipse based GUI.
It is a commercial product, and I happen to work for the company that makes it. In some respects I think it might be overkill for you, as it's really an enterprise-level data mapping tool for mapping disparate data sources (web services, databases, xml files, COBOL) to a common model, as opposed to a simple web services builder, and it doesn't really support your github bits, anymore than normal Eclipse plugins would.
That said, I do believe there are Mantis plugins for github to do task tracking, and I know there's a git plugin for Eclipse that works really well (jgit).
Couldn't you simply use Selenium to execute some of this tasks for you? Basically as long as you can do something from the browser, Selenium will also be able to do. Selenium comes with a language called "selenese", so you can even use it to programmatically create an "API" with your tasks.
I know this is a different approach to what you're originally looking for, but I've been using selenium for a number of tasks, and found it's even good to execute ANT tasks or unit tests.
Hope this helps you
What about Apache Camel?
Camel lets you create the Enterprise Integration Patterns to implement routing and mediation rules in either a Java based Domain Specific Language (or Fluent API), via Spring based Xml Configuration files or via the Scala DSL. This means you get smart completion of routing rules in your IDE whether in your Java, Scala or XML editor.
Apache Camel uses URIs so that it can easily work directly with any kind of Transport or messaging model such as HTTP, ActiveMQ, JMS, JBI, SCA, MINA or CXF Bus API together with working with pluggable Data Format options.