- [placeholder]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// client | |
function tts(text) { | |
var url = 'http://localhost:8080/nlc/synthesize'; | |
var req = { | |
method: 'POST', | |
url: url, | |
responseType: 'blob', | |
data: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AngularJS: | |
$http.post('http://example.com', { username: "username" }, function (data) { | |
console.log(data); | |
}) | |
// Vanilla: | |
var httpRequest = new XMLHttpRequest() | |
httpRequest.onreadystatechange = function (data) { | |
console.log(data); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<md-content layout="column"> | |
<md-content layout="row"> | |
<md-card flex> | |
<md-content> | |
<md-card-title> | |
<md-card-title-text> | |
<span class="md-headline">hi</span> | |
<span class="md-subhead">hi</span> | |
</md-card-title-text> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app.js | |
const express = require('express'); | |
const app = express(); | |
let tmp = new (require('./default'))("hi"); | |
app.use('/', tmp.getRouter()); | |
const http = require('http'); | |
var server = http.createServer(app).listen(7777); |
- Introduction
- Scope
- Problems
- Goals
- Background
- Microservices
- Containerization
- Docker
- Messaging
- Microservices
- synchronous messaging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
networks: | |
default: | |
external: | |
name: kafka | |
services: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const kafka = require('kafka-node') | |
const client = new kafka.Client('kafka_broker:2181') | |
const HighLevelProducer = kafka.HighLevelProducer | |
const producer = new HighLevelProducer(client) | |
let prodRdy = false | |
producer.on('ready', () => { | |
producer.createTopics(['test'], false, function (err, data) { | |
if (!err) { |
OlderNewer