小编use*_*844的帖子

Netty 与 Nginx:基于性能、内存管理、内存占用的优缺点

问题:Nginx 和 Netty 用于构建代理服务器的优缺点是什么?

细化问题:

我们正在尝试实现一个代理服务器(正向或反向代理),它位于服务前面,并负责可应用于我们服务的良好实践。

因此,我们正在评估市场上可用的不同解决方案,主要是 Nginx 和 Netty。因此,当我们最初对 Nginx 进行研究时,我们遇到了大量正面的博客,这些博客表明 Nginx 非常快,通过编写自定义模块到 Nginx 插件可以轻松配置。

但是当我们在 Netty 上做 POC 时,我们在使用 Netty 4 时得到了更好的性能数据。 所以我想知道是否有人对 Nginx 和 Netty 进行了一些比较,以及不使用 Netty 作为反向的原因是什么/转发代理解决方案。我们担心与 Java Server 解决方案相关的 GC 问题,因此我们想在继续解决方案之前了解 Nginx 和 Netty 的优缺点。

谢谢,维奈。

performance proxy reverse-proxy nginx netty

6
推荐指数
2
解决办法
3278
查看次数

该程序有什么不打印任何结果?

struct node{
    int data; struct node *next;
};

void push(struct node* head, struct node* n){
    if(n!= NULL){
        if(head==NULL)
            head = n;
        else {
            n->next = head;
            head = n;
        }
    } else printf("Cannot insert a NULL node");
}

struct node* pop(struct node* head){
    if(head!=NULL){
        struct node *n = head;
        head = head->next;
        return n;
    } else {
        printf("The stack is empty");
        return NULL;
    }
}

int main(){
    int i;
    struct node *head = NULL, *n;
    for(i=15;i>0;i--){
        struct node *temp = …
Run Code Online (Sandbox Code Playgroud)

c

-9
推荐指数
1
解决办法
69
查看次数

标签 统计

c ×1

netty ×1

nginx ×1

performance ×1

proxy ×1

reverse-proxy ×1