mixer

从 SOA 到微服务,企业分布式应用架构在云原生时代如何重塑?

谁都会走 提交于 2019-11-29 00:22:40
导读 :从十余年前的各种分布式系统研发到现在的容器云,从支撑原有业务到孵化各个新业务,企业的发展离不开统一的、与时俱进的技术架构。本篇文章从企业分布式应用架构层面介绍了云原生计算架构带来的变化,希望能够帮助更多企业的 IT 转型,利用云计算技术推动其成为市场竞争中的敏捷力量。 进入 21 世纪以来,我们见证了企业分布式应用架构从 SOA(Service-oriented Architecture),到微服务架构,再到云原生应用架构的演化。 为了说明企业架构演化背后的思考,我们先谈一些玄学。 第一,企业 IT 系统的复杂性(熵)符合热力学第二定律。随着时间的推演,业务的变化,企业 IT 系统的复杂度会越来越高。 第二,在计算机交互设计中有一个著名的 复杂性守恒定律 。应用交互的复杂性不会消失,只会换一种方式存在。这个原理也同样适用于软件架构。引入新的软件架构,不会降低IT系统的整体复杂性。 听到这里,是否让生命不息、折腾不止的我们感到一丝凉凉?:-) 现代软件架构的核心任务之一就是定义基础设施与应用的边界,合理切分复杂性,减少应用开发者需要面对的复杂性。换句话说,就是让开发者专注在核心价值创新上,而把一些问题交给更合适的人和系统来解决。 我们就从下面这张图开始,探究企业分布式应用架构演进背后的逻辑。 蜕变之痛 - SOA 2004 年,IBM 建立 SOA 全球设计中心,我作为研发

一, 跨语言微服务框架

北城以北 提交于 2019-11-28 21:24:50
微服务的概念已经在各大公司实践开了,以Java为代表的spring boot成为了微服务的代表,K8S+Docker成为了微服务运行的最佳环境,微服务的概念已经离我们没有那么遥远了。 当然微服务是复杂的,除了组件繁多还需要代码做出很多改造才能享受到它带来的优势,那么有没有一种方式可以不需要太多代码改动就能够在多种不同的开发语言中灵活使用呢? 基于服务网格Istio就诞生了,拨云见日我们今天就来一同学习了解微服务和Istio相关的知识. 附上: 喵了个咪的博客: w-blog.cn Istio官方地址: https://preliminary.istio.io/zh Istio中文文档: https://preliminary.istio.io/zh/docs/ PS : 此处基于当前最新istio版本1.0.3版本进行搭建和演示,不同的版本各种细节会有些许不同! 一. 微服务 在开始讲解Istio之前我们需要先了解微服务的概念,以及在微服务管理中常常需要使用到的一些列的组件: 服务注册:服务提供方将自己调用地址注册到服务注册中心,让服务调用方能够方便地找到自己。 服务发现:服务调用方从服务注册中心找到自己需要调用的服务的地址。 负载均衡:服务提供方一般以多实例的形式提供服务,负载均衡功能能够让服务调用方连接到合适的服务节点。并且,节点选择的工作对服务调用方来说是透明的。 服务网关

Android: Mixing multiple AudioTrack instances?

▼魔方 西西 提交于 2019-11-28 20:54:33
I need to run two instances of AudioTrack at the same time. They must run separately because I'm playing them at different, variable sample rates. I found that if I run them in the same thread, they "take turns". I'm running them each in their own thread, but the audio is stuttering. Any ideas on making two instances play nice? If not, any tips on mixing two short buffers into one, even if I want to play them at different sample rates. I have 4 audioTracks playing at once and they seem to play fine. Testing on HTC Desire 1.1ghz OC. I get glitches with the threading sometimes though.

Service Mesh 发展趋势(续):棋到中盘路往何方 | Service Mesh Meetup 实录

。_饼干妹妹 提交于 2019-11-28 19:46:37
敖小剑,蚂蚁金服高级技术专家,十七年软件开发经验,微服务专家,Service Mesh 布道师,ServiceMesher 社区联合创始人。 本文内容整理自 8 月 11 日 Service Mesher Meetup 广州站主题演讲,完整的分享 PPT 获取方式见文章底部。 前言 标题“Service Mesh发展趋势(续)”中的“续”是指在今年5月底,我在 CloudNative Meetup上做了一个“ Service Mesh发展趋势:云原生中流砥柱 ”的演讲,当时主要讲了三块内容:Service Mesh 产品动态、发展趋势、与云原生的关系。后来有同学反应希望部分感兴趣的内容能讲的更深一些,所以今天将继续“Service Mesh 发展趋势”这个话题。 今天给大家分享的内容有部分是上次演讲内容的深度展开,如社区关心的 Mixer v2 以及最近看到的一些业界新的技术方向,如 web assembly 技术,还有产品形态上的创新,如 google traffic director 对 Service Mesh 的虚拟机形态的创新支持。 在 Service Mesh 出道四年之际,也希望和大家一起带着问题来对 Service Mesh 未来的发展进行一些深度思考。 在正式开始分享之前,让我们先轻松一下,下面是最近流行的梗,各种灵魂拷问: 我们今天的分享内容,将效仿上面的方式

Sound — An API for playing sound data from applications.

好久不见. 提交于 2019-11-28 19:08:13
https://docs.oracle.com/javase/tutorial/sound/index.html The Java Sound API is a low-level API for effecting and controlling the input and output of sound media, including both audio and Musical Instrument Digital Interface (MIDI) data. The Java Sound API provides explicit control over the capabilities normally required for sound input and output, in a framework that promotes extensibility and flexibility. Java Sound API是一个底层API,用于实现和控制声音媒体的输入和输出,包括音频和乐器数字接口(MIDI)数据。 Java Sound API在一个促进可扩展性和灵活性的框架中提供对声音输入和输出通常所需功能的显式控制。 The Java Sound API fulfills the needs of a wide range of application

In Java, how do I record the sound output that is going to the speakers? [duplicate]

时间秒杀一切 提交于 2019-11-28 04:54:35
问题 This question already has answers here : Capturing speaker output in Java (3 answers) Closed 4 years ago . I have a java application that is taking in sound from multiple sources, and one of the abilities of the user is to record what is happening in the application to an AVI file, and I would like to include the sound in that video capture. How do I record the sound that the user would hear (ex. a result of all of the sound inputs mixed together)? I can figure out how to get the actual sound

How to adjust microphone gain from C# (needs to work on XP & W7)

走远了吗. 提交于 2019-11-27 22:22:16
问题 First, note that I know there are a few questions like this already posted; however they don't seem to address the problem adequately. I have a C# application, with all the pInvoke hooks to talk to the waveXXX API, and I'm able to do capture and play back of audio with that. I'm also able to adjust speaker (WaveOut) volume with that API. The problem is that for whatever reason, that API does not allow me to adjust microphone (WaveIn) volume. So, I managed to find some mixer code that I've

Can Java Sound be used to control the system volume?

安稳与你 提交于 2019-11-27 01:59:53
Java Sound offers FloatControl instances for various sound line functionality, and both a MASTER_GAIN & VOLUME control type. Can these controls be used to change the system volume? No, it cannot. Here is source adapted from an answer to Adjusting master volume on coderanch. The source iterates the available lines, checks if they have a control of the right type, and if so, puts them in a GUI attached to a JSlider import java.awt.*; import javax.swing.*; import javax.sound.sampled.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; public class SoundMixer { public

Getting individual windows application current volume output level as visualized in audio Mixer

元气小坏坏 提交于 2019-11-26 22:30:59
I am trying to write a C# code that outputs the current audio output level from each of the windows application accessing the sound output (as shown with constantly changing green bars of the Volume mixer). The program will check every 10 ms, and outputs sth like this: Windows Media Player: 30, Mozilla Firefox: 0, Adobe Flash Player: 35 (as per the figure) I am using Windows 7, and trying it in C# (as Java cannot achieve this). I have found ways to get and set the Master Volume (the handle bar which shows 65% for Windows Media Player) for a running application, is there a way to get the green

Get Master Sound Volume in c#

你离开我真会死。 提交于 2019-11-26 22:29:57
I need to get the current volume of the output to the sound card. Any ideas how? You can get at these values using IAudioMeterInformation in the CoreAudio APIs in Vista and Win 7. Managed wrappers are available in NAudio (get at the AudioMeterInformation from the MMDevice). static int PlayerVolume() { RecordPlayer rp = new RecordPlayer(); rp.PlayerID = -1; int playerVolume = rp.PlayerVolume; return playerVolume; } from modified Microphone Volume in c# article Look in MSDN information for: IMMDeviceCollection, IMMDevice and IAudioEndpointVolume (only Windows Vista, Windows 7). mixerGetNumDevs,