Ok, so I want to make a platform based on building feeds of news that I read from RSSs. And I want to ingest data to redis using kafka, and this data in redis will be also used by other services. So I was wondering that I should implement an API to interact to my redis BD so I do not have my business logic sharded between clients doing requests to redis, I have thought of implementing a REST API inside a server which will store the core business logic. BUT, could I use LUA scripting to do so and avoid this extra node in my architecture? I mean: instead of implementing a POST in an API REST that would implement the creation of a Feed in my redis BD, I would implement a lua script to do so. And when I need an outside server to create a Feed I will call directly this lua script. This way I will reduce the round trips needed to make a change in my BD but I don't know if it can be very problematic in any way.
Where to place my business logic when using redis as my core BD
312 Views Asked by Alberto Coello At
1
There are 1 best solutions below
Related Questions in REDIS
- How to Socket.IO Multithreading on a Raspberry Pi?
- How to get the session ID returned by cookie with spring-session-data-redis
- Cannot serialize (Spring Boot)
- JEDIS/REDIS 'ON' Keyword or broken query?
- Quart_Sessions Redis deletes keys and create backups instead
- Docker builds redis, mounts the host network and uses 192.168.*.* to access the redis server and is denied
- Need a script to fetch the redis latency values over 20 seconds and store the results in a file
- Service in Docker Compose not connecting to Redis container in docker, Failed to connect to any host resolved for DNS name
- Install redis vector database on GCP in a GKE cluster
- how to avoid while loop while waiting for future complete?
- Is it possible to append the data in Redis command
- Not able to inject RedisCache/SyncCache/StatefulRedisConnection beans in micronaut 4.2.1 version
- RedisConnectionFailureException intermittently
- using redis timeseries in aredes error =>Error handling publish event: [ErrorReply: ERR TSDB: invalid value]
- HttpResponseMessage caching using redis
Related Questions in LUA
- How to make a ServerScript wait for a LocalScript to fire a RemoteEvent
- global const variables in lua 5.4
- Backpack for roblox simulator game
- Calling an event with a delay in Roblox Studio. How to do?
- lghub lua script presskey
- LGHUB Lua script
- In pairs for loop not looping inside of another in pairs loop
- Lua syntax error expected '(' near update_rotation
- 64 unsigned integers in Lua 5.3/5.4 do not behave like in "Programming in Lua"
- How to write a lua pattern that is aware of escaped characters?
- having trouble installing neovim plugin
- Incorrect number comparison result (Lua)
- Lua: is there a need to use hash of string as a key in lua tables
- continuations in lua, is not working while trying extending it
- Neovim Kickstart config "E5113: Error while calling lua chunk: vim/_editor.lua:0: attempt to compare two table values" everytime I open neovim
Related Questions in BUSINESS-LOGIC
- Strategies for Linking Recipe Ingredients with Specific Products in a Database
- How to avoid duplicate entry of Shops in a Website
- How can I practice DDD on my own without access to a domain expert?
- Efficiently Handling Complex Conditional Business Logic in Kotlin with Spring Boot 3 & Gradle
- What's the best way to move logic outside of a Vue project?
- Balancing logic placement in the domain and general perfomance of the system
- Placement of business logic as validation of data in architecture
- Guest checkout business logic for server/database with Stripe
- How should method of DDD Entity look like in a client app?
- How to handle the result of an operation that may depends on inconsistent data
- looking for suggestion for better solution
- Separation of responsibilities between infrastructure and services (business) layers
- How can I handle a dynamic number of inputs without an increasing number of if statements or switch cases?
- Web application design pattern for optional paid extensions
- Part of which architecture layer is React Redux?
Related Questions in BUSINESS-LOGIC-LAYER
- How to split below action method code into separate DAL & BLL in asp.net mvc?
- convert between IMPERIAL & METRIC unit on button click C#
- EF Core Inheritance - How to design Business Logic Layer?
- DDD : Business Logic which need infra layer access should be in application service layer, domain service or domain objects?
- Where to place my business logic when using redis as my core BD
- ASP.NET, C# | How to use a method (and the returned value) with a controller?
- How to keep correspondence between Domain and Presentation objects
- BLL log in validation c#
- How to separate business logic layer using ModelState wrapper class in .net core mvc
- C# | How to make class instances (objects) for passing data from DAL to BLL
- Is there any way I can automatically generate BLL classes for a particular database table in c# .NET?
- Using LINQ with different layers means I can't access a specific type
- Web API Business Layer Architecture and its responsibilities
- C# Winform - DAL and BLL - usage of static methods is good?
- Business logic and rules - how to decouple them from the domain model
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Lua script can't be set as a Rest Server in Redis as it can't get out of the sandbox and can't run the background.
You might want to check the Redis module RedisGears as it can run Python script and is not limited to the sandbox.
Another module you might want to check is RedisRest.