So I have a client that has a POS software built with c# and MS SQL server. Now each of their clients have their own SQL server on their computers. That is connected to their own version of the program.
Now these people want their website to connect to their POS system and pull all their products though to their websites and also say when it has been sold on the database to have a central point of operations.
How can I connect these two?
So I don't know what language I should use to access the SQL databases that can also input new data into it.
Related
Data traffic is a major cost driver in a MongoDB Atlas cluster. Being able to break down traffic by collection name or even query type could help to identify inefficient queries and operations that cause high data traffic as a first step to optimize them.
According to MongoDB Atlas support (as of March 2022) there is currently no native way to break down data traffic by anything other than a cluster node. So the solution can only be somewhere on the client side, in my specific case the server that uses the MongoDB Node.js driver on make requests to the MongoDB Atlas cluster.
The obvious approach would be to build a layer on top of the MongoDB Node.js driver to log the data sizes for all sent and received request data and calculate the metrics from that.
However, the server that is making the requests runs in a Node.js environment on a EC2 instance in AWS, so I wonder whether there is a more elegant approach using AWS CloudWatch? The challenge is that the requests need to be broken down per MongoDB collection and MongoDB query type, which is information that is encoded in the request body, not the URL.
I would like to use electronjs to develop a desktop application. The app has to have an offline and online database, such that when the system connects to the Internet, the databases can sync.. How can I achieve this please. Using nodejs to develop apis
Sure, you can do that with sqlite database or pouchDB. If you don't want to write long queries for sqlite then you can use Prisma sqlite. then after just store it in the local database (sqlite or pouchDB) whenever the system is offline. and whenever the system will become online post the last data to your SQL/Postgres/Mongo server.
I have to develop an architecture where a C# program on a windows server sends out market (stock) data once a second to over 1000 web clients which are in jQuery (on a Linux box, LAMP stack). Some users may require dedicated channels.
How can I implement a reliable, scalable, and enterprise level solution myself without using third party paid services such as Pusher or PubNub?
The data channels have to be secure (SSL).
Thanks.
i've created a project(asp.net) - website
The database resides on the client machine.
Flow:
Client opens the website, and submit with the required fields, and then the server would authenticate.
Next, the api what i've created should be transferred to the Client pc, as the database would be accessible only where the client and server at the same system only.
Limitation: cannot move the database to the server, ie making database on the server.
If i'm hosting website on the localhost, everything is running fine, and also m fetching data from the database and i can see it on the browser.
But the same if i'm hosting website on server, m not able to fetch any result.
Is there any method or so, to execute on the client system that would be making connection between the cient browser and database residing on the client system only.
The whole scenario is same as of: bloomberg (what i came to knw about my issue and the bloomberg as a public db to be used issue), where bbg restricts its usage on the web, and bbg is accessble only for the client system for the client n on that client account only.
ON STRAIGHT: is it possible to access the client machine database or an application by browser.
Because i after making opening the website and also making some input and then submit, the call should call api which will access the data to be shown on browser would be from the client pc.(lets say - database resides at client pc)
No, there is no way to access a traditional database on a PC directly from the browser. You'd need a web app in the middle, so that your browser accesses the web app, and this offers indirect access to the database.
If you can install a web app that has access to the PC database, there are interesting ASP.NET and browser technologies to access the data: Web API OData + breeeze.js.
The only alternative would be to use HTML5 Storage databases, but they are still under definition and mostly unsupported. See, for example, this page: HTML5 Features: Storage. An this is not what you're looking for.
What I'd like to achieve:
have a main server running node.js and socket.io that runs a "chat-like" webpage, like this chat example. On this server I'll also have a mongo database where I store multimedia files and tags. I have no plan to use the filesystem to store data and metadata, so I choose gridFS.
having multiple client machines all over the world that can connect to my server, giving me back their MAC addresses as idintificator. These machines have their own local copy of the main server's database, that needs to be updated if some media or tags are missing. I need to be able to match the local db to the main one.
in the "chat" page I can type predefined textual commands that trigger useful actions, such as sending back to the main db a video or audio typing in the chat "[client MAC address] GET VIDEO ('video.mp4')"..
Now as a newbie my question is: can I do this with only node, socket.io, gridFS and javascript?
There are better alternatives?