Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
teade
Advanced tools
Readme
IPC(Inter Process Communication) package using RPC over HTTP.
Note:
If you use node < 4.0
then stick to version 0.0.6
.
To install run npm i -s teade@0.0.6
.
This version is completely stable but if you need some additional features from the latest version, raise an issue on github.
You probably need this for communicating with different microservices in a microservice architecture.
The most trusted and tested protocol is HTTP and this package uses HTTP to create a Client-Server connection so it can call remote procedures in a reliable manner.
Go Cross Platform, we are working on the go
and .netcore
versions of this package. Once done you can connect your servers and clients written in different languages.
If you need it in some other language or want us to speed up the process, then raise an issue on github and help us test.
Other requests for features, please raise an issue on github.
Install using npm:
npm install --save teade
Require library
const teade = require('teade');
let server = new teade.Server();
server.addService({
'readRPC': read
});
function read(call, callback) {
myReadProceduralCall(call, function(err, response) {
if (err){
var error = new Error();
// anything attached to error is sent as is
callback(error);
}else{
callback(null, response);
}
});
};
server.bind(8080);
server.start();
let client = new teade.Client('http://localhost', 8080);
// payload should always be a valid JSON
let payload = {
name: "John"
}
client.request('readRPC', payload, function(err, response) {
if (err) {
// handle error
// accessible data
// err
} else {
//do something with the response
// accessible data
// response
}
})
Name | Description | Example |
---|---|---|
Host | hostname where the RPC server is running, prefix the protocol | http://localhost |
Port | port at which the RPC server is running | 8080 |
Host-Port Set | an array of host:port strings, Teade will then chose a random entry. | [ "http://localhost:8080", "http://localhost:8081" ] |
see the test directory for now.
FAQs
inter service communication using http
The npm package teade receives a total of 359 weekly downloads. As such, teade popularity was classified as not popular.
We found that teade demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.