Questions tagged [middleware]
The middleware tag has no usage guidance.
48
questions
0
votes
0
answers
38
views
Creating a generic service comprising another service
Currently I have an existing API for my AI Engine, and a python wrapper to interact with the API. So this wrapper acts like a helper class to help format and automate some of the process that is ...
1
vote
1
answer
89
views
Moving Transaction Logic to Middle Layer: Pros and Cons
We have an event booking system that allows patrons to add themselves to a waiting list if an event is fully booked. When somebody cancels, the system moves the first person from the waitlist into a ...
0
votes
1
answer
165
views
Middleware responsibilities and usage: checking preconditions for business logic
I am developing an API backend in NestJS, now for some specific routes (or controllers) I am loading in a configuration from the database to handle an incoming request. This fetching of the ...
-1
votes
1
answer
467
views
Why do we need middleware in FASTapi?
From official documentation:
A "middleware" is a function that works with every request before it is processed by any specific path operation. And also with every response before returning ...
0
votes
0
answers
49
views
Modelling Interfaces provided by different IPC frameworks
I'm stuck with a problem, where I don't know how to model interfaces that are provided by different IPC frameworks.
Let's say, there is a camera component and two arbitrary components C1 and C2. The ...
0
votes
1
answer
88
views
Middleware with parameters and dependencies
I'm trying to use the middleware pattern to avoid repeating same code over and over again. In my application I work with user data a lot, therefore there are a lot of checks here and there. The ...
-1
votes
3
answers
1k
views
Is it a bad idea to save the database in middleware?
So I've implemented the repository pattern in a lot of projects, but there seems to be a bit of a discussion on what is right with this pattern. Previously, I've always added Update or Create methods ...
0
votes
1
answer
606
views
DDD for middleware web application
I am developing a middleware application where the application workflow is:
handles rest requests
performs some business logic
calls another rest service
I would like to use DDD to model the ...
-1
votes
2
answers
137
views
ESB Services vs Services using Language
Our business domain is complex. Currently, our business is written using ASP.NET WEB API HTTP services. So, applications including web, mobile and desktop are talking with these HTTP apis. Now, one of ...
-1
votes
1
answer
505
views
Good practices for frontend-backend communication
What are some good practices for handling communication between a frontend and a backend?
From what I know in order to keep things loosely coupled you shouldn't just have your frontend have a ...
1
vote
1
answer
130
views
Checking validity of users and tenants in each request
I am designing a centralized IDP to use for a database-per-tenant application that uses a "tid" (Tenant Id) claim in the access token that the WebAPI uses to create a connection string ...
-1
votes
2
answers
105
views
Best place to map Model got in ActionMethod
I'm not sure this question matches this forum's purpose, but I didn't think it should belong to the stackoverflow one either, so here it goes:
I created a model binder that makes one mapping so "...
1
vote
1
answer
1k
views
Sequence diagram: explicitly show websocket creation?
I am trying to draw up a sequence diagram to show how my web client will interact with my backend over a websocket connection.
I am using a websocket middleware to manage the stream connections.
...
5
votes
2
answers
344
views
Does "middleware" have two different meanings?
Does "middleware" have two different meanings and therefor is unnecessarily overloaded?
Horizontal: I saw some use middleware to mean something like proxy or gateway
sitting between two entities at ...
1
vote
2
answers
3k
views
Bidirectional sync between two databases with differing schemas
I'm embarking upon a project where the goal is to create a bidirectional sync mechanism between two database systems with differing schemas. One is a custom CRM app build on MongoDB, the other is ...
0
votes
1
answer
357
views
Are distributed file systems and naming services middleware?
From Distributed Systems by Coulours, a distributed system is partitioned into layers
Middleware is defined as
Middleware was defined in Section 1.5.1 as a layer of software whose
purpose is to ...
2
votes
1
answer
958
views
Message Broker vs. iPaaS
Does anyone have suggestions/recommendations/guidance they can offer on when to use a message broker like RabbitMQ/Kafka vs. an iPaaS solution like Mulesoft/Jitterbit/Dell Boomi/Workato? Can they ...
2
votes
1
answer
250
views
How does the concept of http middleware differ from events?
I've been thinking about the most optimal way to implement middleware in my web application and it got me thinking, how is middleware any different from events?
Let's say that before a controller ...
0
votes
1
answer
63
views
Is it a good idea to pass an URL as a parameter for a pass through service?
I'm developing a service in node JS that will act as a middleware for a client calling a third party API.
My service will make some security and user roles checks before calling the third party.
So ...
0
votes
0
answers
78
views
In Middleware paradigm, how do you transfer resources from one step to the other?
What would be the right way, according to the Middle-ware paradigm/design pattern to transfer resources (like connections to some IO devices).
It is not part of the Request, and it is definitely not ...
2
votes
1
answer
382
views
How to convey object hierarchy when object is converted to json for updates?
I have some classes being serialized via frugal (this is an open source extension of Thrift). The primary reason this is relevant is that the serialization process is out of my control and needs to ...
0
votes
1
answer
74
views
SOA with dynamic forms
When building a Service Oriented Architecture (because the services will be used by automated systems or other consumers), how can I go about creating a simple, dynamic form-based web frontend for ...
1
vote
1
answer
863
views
Contract decoupling on microservices
I am not trying to launch a Microservices vs SOA debate but I find hard to understand the following statement:
"Microservices architecture does not support contract decoupling, whereas contract
...
2
votes
4
answers
2k
views
What is a "streaming app", exactly?
I'm trying to get past all the hipster, pie-in-the-sky buzzwording and address a very simple, fundamental question:
What is a streaming application?
According to the Kafka site
"Kafka is used for ...
3
votes
1
answer
489
views
Is the word "Dependency" used correctly in DI?
The word "Dependency" is used a lot in programming. But I think we might be using it wrong in many ways. I will use "Dependency Injection" in this post as an example. According to the Dictionary.com, ...
0
votes
2
answers
208
views
Advice on using middleware to phase out legacy ERP system
I would like to know if any of you have any experiences and advice you'd like to share about middleware systems?
A little background first: the company I work for is based entirely on a closed ...
1
vote
3
answers
6k
views
What is the difference between AUTOSAR and DDS?
I am wondering what is the difference between DDS and AUTOSAR. As I know, both of them are communication middlewares. AUTOSAR WAS originally proposed by a group of car manufacturer that's why I guess ...
2
votes
0
answers
1k
views
How to persist a session cookie in a PSR7 request/response middleware?
I am building a package that implements native-like sessions in a PSR7 middleware architecture.
I created a middleware which is responsible to create and persist a session cookie. The session is also ...
2
votes
1
answer
828
views
Best Possible Way To Write Unit Tests For HTTP Middleware
I am using this go library(https://github.com/abourget/goproxy) to create a custom proxy server app. The app is utilizing several middleware of the following form:
MyMiddlewarFunc(ctx *goproxy....
0
votes
2
answers
1k
views
Are hooks really subsumed by Slim Framework middleware?
I've been using the Slim Framework (v2) for a little while now to develop my user management system.
They recently released Slim 3, and according to the upgrade guide,
Slim v3 no longer has the ...
2
votes
2
answers
447
views
How system integration happens with an ESB?
Assume I have two different software sub systems and I need to interconnect them through an Enterprise Service Bus.
What sort of modifications do I need to make in the existing systems to integrate ...
2
votes
1
answer
3k
views
What is the middleware (if any) in web-service consumed by a website?
I am trying to identify the parts of an architecture.
The server (Python) acts as a web-service, delivering files and data. The client (JS) requests the data which it needs by sending xmlhttprequests ...
2
votes
2
answers
2k
views
Middleware dependencies
I'm trying to convert a legacy PHP app to use the middleware paradigm, similar to connect/express.js.
I've started porting the code into separate middlewares so that every feature is neatly self ...
15
votes
2
answers
9k
views
Is CORBA outdated? [closed]
I'm just learning about midleware in class, and our teacher has told us about CORBA. Doing a bit of research, I've found that the last version (CORBA 3) was released in 2002, which seems quite old in ...
9
votes
3
answers
3k
views
have we come full circle with microservices, back to very old school approaches?
In terms of software architecture and design, how do microservices "stack up" (pun intended) against middleware? I'm coming from Java, and it seems like as you move away from straight REST as an API, ...
2
votes
4
answers
4k
views
3 tier architecture in .NET web applications
Nowadays most systems are designed as web apps. In the .NET world the famous three tier architecture is usually translated like this.
Front End (Web Application)
Middle Tier (custom DLLs using an ...
21
votes
1
answer
35k
views
Differences between API Gateways and ESBs? [closed]
The company I work for is evaluating some middleware solutions for governace, metering and security of web services. Currently, we're using an Enterprise Service Bus (ESB) for this purpose, but some ...
5
votes
1
answer
269
views
How to Recover from Inconsistent Job State without Database Polling
I'm working on scaling an application which is currently polling a mySQL database to send async jobs to a background processing system.
A state machine is being used to keep track of the entities ...
40
votes
1
answer
41k
views
Why database as queue so bad? [closed]
I've just read this article, and I'm confused.
Let's imagine 1 webapp and 1 distinct application acting as "worker", both sharing the same database.
Oh, I said "sharing"..but what does the article ...
11
votes
4
answers
24k
views
What is the middleware pattern?
Here's a Ruby poject that implements the middleware pattern. From the description, I have no idea what the pattern is, what it's useful for, and why other solutions wouldn't work as well.
What is ...
0
votes
2
answers
374
views
how to expose certain tables of an internal database on a public site
I have an internal database at my work. At the moment we are using excel to import data, but this is very error prone, so I would like to replace this with some javascript based application which ...
1
vote
2
answers
2k
views
What is the equivalent of Entity Framework in the world of Oracle shops? [closed]
Within the world of developers/firms specializing in building/deploying solutions built around software built/sold by Oracle (aka "Oracle houses"), what ORM middleware is considered as the "industry ...
0
votes
1
answer
259
views
EJB Lifecycle and Relation to WARs
I've been reading up on EJBs (3.x) and believe I understand the basics. This question is a "call for confirmation" that I have interpreted the Java EE docs correctly and that I understand these ...
5
votes
2
answers
8k
views
What are frameworks, stacks, and middleware?
I often see several terms (such as software stack, framework, and middleware) thrown around a lot, and it would be very helpful for someone to explain the differences between them
I was prompted by ...
1
vote
1
answer
727
views
Criteria When Evaluating Middleware
What are some suitable criteria for evaluating a list of Companies complimentary middleware? I am doing a trade study on several Company's middleware implementations and so far I have came up with the ...
0
votes
2
answers
7k
views
Application vs middleware development in android [closed]
I have 1 year and 6 months of experience on Android. All of my experience has been into application development. Recently I have got offers from two companies. One is offering me a profile to work on ...
0
votes
1
answer
745
views
Selling middleware
I am close to completion of a useful suite of tools for 2D game development (with mobile platforms in mind), for working with sprites and animations.
Can anyone advise the best way to sell and ...
4
votes
3
answers
461
views
What scenarios are implementations of Object Management Group (OMG) Data Distribution Service best suited for?
I've always been a big fan of asynchronous messaging and pub/sub implementations, but coming from a Java background, I'm most familiar with using JMS based messaging systems, such as JBoss MQ, HornetQ,...