




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Q. Describe a typical ticker-plant set up.
Q. Describe how a ticker-plant operates?
Q. What is a chained ticker-plant?
Q. What is a feed-handler?
Q. In what language does the feed-handler receive the data from the data feed?
Q. What function does the feed-handler use to send data to the ticker-plant?
Q. What does –w do?
Q. What would you do if your ticker-plant goes down?
Q. What would you do if an RDB fails?
Q. What is the difference between batching & zero-latency mode?
Q. Why would you choose batching or zero-latency mode?
Q. How would you choose batching mode?
Q. How can you check if a log file exists?
Q. In what format does the TP receive data from the feed-handler?
Q. How does the TP create a q table from the data it receives?
Q. How would you tell if a RTS was hogging memory or acting slow?
.u.tick: First function to be called when the TP starts up. ● Executed where: standalone file ● Purposes: 1 Execute .u.init 2 Verify that all tables on the TP have time, sym as their first two cols 3 Apply grouped attribute to sym columns of all tables 4 Set .u.d to current date 5 Execute .u.ld to create TP log file ● Args: 1 Name of schema file 2 Directory of log file and HDB
.u.init: ● Executed where: within .u.tick ● Purposes: 1 Define the list of tables (.u.t) which can be subscribed to 2 Define the dictionary (.u.w) which maps each table name to the related subscriber handle ● Args: None
.u.ld: ● Executed where: within .u.end of day ● Purposes: 1 Create ticker-plant log file and establish connection ● Args: 1 .u.d
.u.sub: ● Executed where: As a result of a remote synchronous call from an RTS/RDB ● Purposes: 1 Connects RTS/RDB to TP 2 Subscribes to specified tables & specified syms ● Args: 1 Table name(s) 2 Required sym(s) ● Result: The calling RTS will be added to .u.w. It will return the appropriate empty schemas to the RTS along with location and number of messages (.u.i) in the Log file. The RTS/RDB will then replay the first .u.i messages to get up to speed
.u.del: ● Executed where: Within .u.sub ● Purposes: 1 Clear out any pre-existing subscription from the new RTS to the table they’ve subscribed to within .u.w ● Args: 1 Table name(s) 2 Callers handle
.u.add: ● Executed where: Within .u.sub ● Purposes: 1 Modifies .u.w with the new subscription 2 Returns an empty copy of the relevant table to the new subscriber ● Args: 1 Table name(s) 2 Required sym(s) ● Result: The calling RTS will be added to .u.w. It will return the appropriate empty schemas to the RTS.
.u.sel: ● Executed where: Within .u.pub ● Purposes: 1 Will grab whatever subset of table that the RTS cares about ● Args: 1 Full contents of table 2 Required sym(s)
.u.pub: ● Executed where: Within .z.ts (if publishing on timer) or within .u.upd (if publishing on every update) ● Purposes: 1 Publishes out the relevant rows of the input tables to all interested RTS ● Args: 1 Table name 2 Current contents
.u.end: ● Executed where: Within .u.endofday ● Purposes: 1 Sends async message to each RTS & the RDB to execute their individual .u.end functions ● Args: 1 Yesterday’s date
.u.endofday: ● Executed where: Within .u.ts if gone past EOD ● Purposes: 1 Send identical message to all subscribers telling them to execute their EOD function .u.end 2 Increment current date .u.d 3 Close connection to old log file and establish connection to new log file ● Args: None
.u.ts: ● Executed where: Within timer function .z.ts ● Purposes: 1 Checks to see if we have gone past midnight by testing against .u.d ● Args: 1 The (new) current date
.u.end: ● Executed where: Will execute at EOD as a result of ticker-plant telling it to ● Purposes: - 1 Filter out any tables which don’t have the #g attribute applied to its sym columns 2 It uses the .Q.hdpf function which saves all tables by calling .Q.dpft, clears tables, and send reload message to HDB. 3 Will apply the#g attribute back to each table ● Args: None
.u.rep: ● Executed where: On a standalone line when the RDB starts up ● Purposes: - 1 Initialise the TP tables on the RDB to be empty 2 Uses -11! to replay TP log file as necessary 3 CD to the top level of the HDB# ● Args: 1 Initial burst of data from the subscription to the tickerplant 2 .u.i and .u.L
Q. What is u.L?
Q. What is .u.l (lowercase L)?
Q. How can you check if a log file has been initialised?
Q. How do you initialise a log file?
Q. How does the TP send messages to the log file?
Q. What is contained in a log file?
Q. In what format are the entries in a log file in a TP architecture?
Q. How does an RDB replay a log file?
Q. What does -11! do when called upon?
Q. How does the RDB use -11!? What are the steps?
Q. How does .u.rep get these two arguments?
Q. What are the three overloads of -11!?